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.)
--
(-, /\ \/ / /\/