Hi,
we from
www.plat-forms.org want to use ruby-prof as a profiling tool. plat_forms is a web development platforms contest and we have several ruby on rails solutions, where we want use ruby-prof to analyze the methods called after a request is sent.
We also have Java and C# solutions, and for the profiling there we use yourkit (
http://www.yourkit.com). To make the results comparable I want to write a printer that prints data like in the yourkit report. The report looks like this:
Name, Total time, Avg. Time, Own Time, Invocation Count, Level
A line corresponds to a place in the code where a method is called. If a method is called repeatedly from the same place, Invocation count increases, if it is called from another place, a new line is used.
I was planning to write a new printer, that would print out a line for each call_info of a method, similar to flat_printer just with call_info instead of the method. Is this a viable approach or do I get something completely different? I am new to ruby-prof, so it would be very helpful if somebody more familiar with ruby-prof could give some advice :-)
Regards,
Holger