I've implemented the allocated memory size counter for ruby and memory size measurement mode for ruby-prof.
ruby-prof patch includes all my previous patches (build fixes) and the new measurement mode. ruby-prof should continue
to work without patched ruby interpreter as well.
Ruby patch is based on Sylvain Joyeux's patch and also includes railsbench GC patch
(http://railsbench.rubyforge.org/svn/trunk/railsbench/GCPATCH) with my memory size counter.
Sample output:
Thread ID: 47151247068680
Total: 225668.000000
%self total self wait child calls name
43.78 98805.00 98805.00 0.00 0.00 5280 Kernel#binding
11.71 26427.00 26427.00 0.00 0.00 1442 Kernel#trap
10.25 23356.00 23140.00 0.00 215.00 17384 String#gsub
Numbers are allocated memory size in kilobytes.
|