From: Robert Feldt Date: 2001-11-11T00:49:08+09:00 Subject: [ruby-talk:24832] Re: Profiling Code On Sat, 10 Nov 2001, Matthew Diephouse wrote: > Unfortunately, this only writes the regular output from my program to > the file, not the results of the profiler. > A new profiler for Ruby will be described in the upcoming "Ruby Developer's Guide". It is called RbProf and features: * Faster profiling (10-20% overhead instead of profile.rb's 100-2000%!) * Focused profiling (Only *your* methods or specified methods) * Line profiling (If you really need it; still costly but you can turn it on and off per method-basis) * Saving profile data for manipulation and diffs * Call graph with stats and color-coded "hotspots" can be printed as PS, SVG, PNG etc files (if you have graphviz/dot) * Part of (and example in) AspectR distribution It's finished but needs some polishing before posting to RAA. Probably a week or two away but well in time for the december publication of the book. Regards, Robert