资 源 简 介
A rudimentary Ruby memory profiler that uses pure in-VM techniques to analyse the object space and attempt to determine memory usage trends.
Takes instantaneous snapshots, and can be used to determine trends between subsequent instances.
Can also be used to detect memory leaks (obscure object references, etc.) in particular blocks or sections of code.
Note that this uses pure Ruby code and techniques, without patches to the VM. As such it is trivial to install and use, but it doesn"t have access to raw memory management/garbage collection data, so is forced to estimate, and it will affect performance noticeably.
It has been tested with the following Ruby versions (ruby -v):
* ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
* ruby 1.9.1p243 (2009-07-16 revision 24175) [i486-linux]
This project was inspired by the similar Ruby memory profiler at http://code.google.com/p/ruby