Benchmarking RAM

G

Gavin Kistner

How can I measure the amount of RAM (allocated, not real) is used by
a particular approach to a problem? I can use the winmgmts stuff for
Windows, so I'm primarily interested in a BSD/MacOS X solution.

(Though a pure Ruby solution would be cooler than platform-specific.)
 
D

Daniel Berger

Gavin said:
How can I measure the amount of RAM (allocated, not real) is used by
a particular approach to a problem? I can use the winmgmts stuff for
Windows, so I'm primarily interested in a BSD/MacOS X solution.

(Though a pure Ruby solution would be cooler than platform-specific.)

You should be able to use sys-proctable for Windows and BSD, and use
the appropriate ProcTableStruct members. I don't have an
implementation for OS X yet, however.

Regards,

Dan
 
A

Ara.T.Howard

How can I measure the amount of RAM (allocated, not real) is used by a
particular approach to a problem? I can use the winmgmts stuff for Windows,
so I'm primarily interested in a BSD/MacOS X solution.

did you consider sending yourself a signal to dump core and check the core
file size? it's a hack for sure... but it can be quite revealing.

cheers.

-a
--
===============================================================================
| email :: ara [dot] t [dot] howard [at] noaa [dot] gov
| phone :: 303.497.6469
| My religion is very simple. My religion is kindness.
| --Tenzin Gyatso
===============================================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top