Afficher un message
Vieux 07/01/2008, 15h58   #3
Jano Svitok
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Function to Display Ruby Memory Usage

On Jan 7, 2008 5:06 AM, M. Edward (Ed) Borasky <znmeb@cesmail.net> wrote:
>
> Michael W. Ryder wrote:
> > ...

> I don't know how to do this on Windows, MacOX or BSD, but on Linux, you
> can pick up your PID using a call to Process.pid. Then you can shell out
> to "pmap" and parse the result, which tells you all the segments and
> whether they are mapped to shared libraries or inside the Ruby
> executable. The code would look something like this:
>
> pid = Process.pid
> map = `pmap -d #{pid}`
>


You'll find (much simpler) version for windows in the archive in
thread 'The real difference between Mutex and Sync'. Search for
'pslist'.

  Réponse avec citation
 
Page generated in 0,04441 seconds with 9 queries