public
Description: Simple readings for process memory size
Homepage: http://idle-hacking.com/
Clone URL: git://github.com/taf2/rmem.git
rmem /
name age message
file LICENSE Thu Apr 30 16:58:50 -0700 2009 add missing files [taf2]
file README Thu Apr 30 16:59:54 -0700 2009 update README [taf2]
file Rakefile Thu Apr 30 10:50:49 -0700 2009 setup to build a rubygem [Todd Fisher]
directory ext/ Fri Jul 17 09:01:32 -0700 2009 report other process memory usage [Todd A. Fisher]
file rmem.gemspec Thu Apr 30 16:58:50 -0700 2009 add missing files [taf2]
file test.rb Fri Jul 17 09:01:32 -0700 2009 report other process memory usage [Todd A. Fisher]
README
Ruby Memory Measure
-------------------

Ever wonder how much memory your process is using?  Have you ever wanted to know at specific points of execution what 
the memory usage looks like? 
This should give you a similar sense of the process memory usage as looking at top, task manager or activity monitor.  
The advantage is you don't have
to run an external tool to capture what's going on inside your process.

 bytes = RMem::Report.memory
 puts format("footprint: %d bytes, %.2f kbytes, and %.4f MB", bytes, bytes/1024.0, bytes/1024.0/1024.0)

For ruby see test.rb