Jano Svitok
1/7/2008 2:58:00 PM
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'.