From: Daniel Berger Date: 2005-05-31T00:45:33+09:00 Subject: Re: Benchmarking RAM Gavin Kistner wrote: > 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