From: Jay F. <jay...@gm...> - 2010-11-01 16:40:26
|
Hi, 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. It seems to me that this information is present in the sample files, but I can't work out how to extract it from the output of opreport --callgraph. Thanks, Jay. |
From: Maynard J. <may...@us...> - 2010-11-02 13:53:11
|
Jay Foad wrote: > Hi, > > 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. See http://oprofile.sourceforge.net/doc/opreport.html#opreport-callgraph for more help on interpreting callgraph reports. -Maynard > > It seems to me that this information is present in the sample files, > but I can't work out how to extract it from the output of opreport > --callgraph. > > Thanks, > Jay. > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > oprofile-list mailing list > opr...@li... > https://lists.sourceforge.net/lists/listinfo/oprofile-list |
From: Jay F. <jay...@gm...> - 2010-11-02 14:20:01
|
On 2 November 2010 13:53, Maynard Johnson <may...@us...> wrote: > Jay Foad wrote: >> Hi, >> >> 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. Thanks, Jay. |
From: Maynard J. <may...@us...> - 2010-11-03 16:32:05
|
On 11/02/2010 9:19 AM, Jay Foad wrote: > On 2 November 2010 13:53, Maynard Johnson<may...@us...> wrote: >> Jay Foad wrote: >>> Hi, >>> >>> 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 callgraph either. -Maynard > > Thanks, > Jay. |