While using ruby-prof, printed out in graph-html mode, the report for one method says (with some snipping)
%Total %Self Total Self Wait C
Version 0.9.0 of ruby-prof allows method elimination. For example, to eliminate Integer#times
, use
result = RubyProf.stop
result.eliminate_methods!([/Integer#times/])
so that
def method_a
5.times {method_b}
end
will indicate the relationship between method_a
and method_b
directly.
If you don't mind low-tech, maybe you want to consider this. All you need is to be able to pause the debugger. Guaranteed, it will quickly find anything you can find any other way, and not show you any irrelevant code.