On 11/02/2010 9:19 AM, Jay Foad wrote:
> On 2 November 2010 13:53, Maynard Johnson<maynardj@...> wrote:
>> Jay Foad wrote:
>>> Can I use opreport --callgraph to tell me what proportion of run time
>>> was spent either in function foo(), or in any function called by foo()
>>> ? In other words I want to know the proportion of all samples with
>>> stack trace info, where foo was found anywhere in the stack trace.
>> Yes, that information is certainly present in the callgraph report. The non-indented lines show the total samples and their percentage relative to total samples.
> The non-indented lines show the number/percentage of samples taken in
> that function itself, representing the time spent in the function
> itself, *excluding* time spent in the function's callees.
> I want to see the time spent in the function *including* time spent in
> any callees.
I take it you mean "time spent in the callchain". And since opreport shows only
direct callers and callees for a given function, you'd have to chase around the
report to manually gather the information you want. It's possible there's a GUI
available that might provide the callchain roll-up you're looking for -- or at
least would make it easier to gather up. I added Richard Purdie to cc since
he's involved with OProfileUI (http://labs.o-hand.com/oprofileui/). There's
also an oprofile eclipse plug-in
(http://www.eclipse.org/linuxtools/projectPages/oprofile/). I've not had a
chance to check it out before, and, unfortnately, I wasn't able to get this to
install when I tried this morning. Don't know if that plug-in supports