Patches: Browse | Submit New | Admin

[#17676] Memory Profiler

Date:
2008-01-31 20:17
Priority:
3
Submitted By:
Alexander Dymo (adymo)
Assigned To:
Nobody (None)
Category:
None
State:
Closed
Summary:
Memory Profiler

Detailed description
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.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-02-06 02:20
Sender: Roger Pack

Thanks for doing that.
Date: 2008-02-03 00:19
Sender: Charlie Savage

Looks good - applied.  I wonder if we should at least format
the top Total field in the print out to be more readable (maybe
not the column though).

Attached Files:

Name Description Download
allocated_memory_size_measurement.patch Memory measurement mode for ruby-prof Download
ruby186gc.patch Ruby GC patch with memory counter Download

Changes:

Field Old Value Date By
status_idOpen2008-02-03 00:19cfis
close_date2008-02-03 00:192008-02-03 00:19cfis
File Added3291: ruby186gc.patch2008-01-31 20:18adymo
File Added3290: allocated_memory_size_measurement.patch2008-01-31 20:17adymo