Jay Foad | 1 Nov 2010 17:40
Picon

time spent in function, including all callees

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.

------------------------------------------------------------------------------
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
Maynard Johnson | 2 Nov 2010 14:53
Picon
Favicon

Re: time spent in function, including all callees

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
> oprofile-list <at> lists.sourceforge.net
(Continue reading)

Jay Foad | 2 Nov 2010 15:19
Picon

Re: time spent in function, including all callees

On 2 November 2010 13:53, Maynard Johnson <maynardj <at> us.ibm.com> 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.

------------------------------------------------------------------------------
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
oprofile-list <at> lists.sourceforge.net
(Continue reading)

Maynard Johnson | 3 Nov 2010 17:31
Picon
Favicon

Re: time spent in function, including all callees

On 11/02/2010 9:19 AM, Jay Foad wrote:
> On 2 November 2010 13:53, Maynard Johnson<maynardj <at> us.ibm.com>  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.

(Continue reading)

SourceForge.net | 3 Nov 2010 20:49
Picon
Favicon

[ oprofile-Bugs-3090939 ] Patch to move from QT3 to QT4[qt3support]

Bugs item #3090939, was opened at 2010-10-19 19:24
Message generated for change (Settings changed) made by maynardj
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116191&aid=3090939&group_id=16191

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Gert Wollny (gerddie)
>Assigned to: Maynard Johnson (maynardj)
Summary: Patch to move from QT3 to QT4[qt3support] 

Initial Comment:
It seems that QT3 is outdated and some distributions (like Gentoo) have phased out support for it.  With the
attached patch the GUI tool is moved to rely on Qt4 by using the qt3 support library. I haven't tested it
much, I'm not a Qt expert and there are warnings about not connected signals, although the buttons seem to
work like with the QT3 version (i.e. sampling starts stops and the data can be flushed, and the flags selected).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116191&aid=3090939&group_id=16191

------------------------------------------------------------------------------
(Continue reading)

John Villalovos | 3 Nov 2010 21:32
Picon
Favicon

Any plans to move Oprofile userspace from CVS to Git?

I was just wondering if there were any plans to move the Oprofile 
userspace from CVS to Git?  Or some other nicer version control system.

Thanks,
John

--

-- 
John Villalovos
Intel Corporation on-site partner engineer at Red Hat, Inc.

http://tabasco.usersys.redhat.com/

------------------------------------------------------------------------------
Achieve Improved Network Security with IP and DNS Reputation.
Defend against bad network traffic, including botnets, malware, 
phishing sites, and compromised hosts - saving your company time, 
money, and embarrassment.   Learn More! 
http://p.sf.net/sfu/hpdev2dev-nov
Robert Richter | 5 Nov 2010 12:24
Picon
Favicon

Re: [BUG] Profiling cannot be stopped with opcontrol --stop

On 29.10.10 10:33:59, Maynard Johnson wrote:
> On 10/27/2010 11:17 PM, U Feng wrote:
> > Hello:
> > I am running oprofile 0.9.3.

Feng,

this version looks very old, please update to 0.9.6.

> > I am reporting this in case it is a bug.
> This is most likely a kernel problem -- perhaps with the oprofile kernel driver 
> (hence adding Robert to cc).  What distro release, kernel level, and 
> architecture are you running on?  How did you finally get oprofile stopped?  Reboot?

Have you tried the latest upstream kernel (v2.6.37-rc1)?

-Robert

--

-- 
Advanced Micro Devices, Inc.
Operating System Research Center

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
SourceForge.net | 5 Nov 2010 16:20
Picon
Favicon

[ oprofile-Bugs-3090939 ] Patch to move from QT3 to QT4[qt3support]

Bugs item #3090939, was opened at 2010-10-19 19:24
Message generated for change (Comment added) made by maynardj
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116191&aid=3090939&group_id=16191

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Gert Wollny (gerddie)
Assigned to: Maynard Johnson (maynardj)
Summary: Patch to move from QT3 to QT4[qt3support] 

Initial Comment:
It seems that QT3 is outdated and some distributions (like Gentoo) have phased out support for it.  With the
attached patch the GUI tool is moved to rely on Qt4 by using the qt3 support library. I haven't tested it
much, I'm not a Qt expert and there are warnings about not connected signals, although the buttons seem to
work like with the QT3 version (i.e. sampling starts stops and the data can be flushed, and the flags selected).

----------------------------------------------------------------------

>Comment By: Maynard Johnson (maynardj)
Date: 2010-11-05 10:20

Message:
(Continue reading)

SourceForge.net | 5 Nov 2010 17:34
Picon
Favicon

[ oprofile-Bugs-3090939 ] Patch to move from QT3 to QT4[qt3support]

Bugs item #3090939, was opened at 2010-10-19 20:24
Message generated for change (Comment added) made by wcohen
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116191&aid=3090939&group_id=16191

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Gert Wollny (gerddie)
Assigned to: Maynard Johnson (maynardj)
Summary: Patch to move from QT3 to QT4[qt3support] 

Initial Comment:
It seems that QT3 is outdated and some distributions (like Gentoo) have phased out support for it.  With the
attached patch the GUI tool is moved to rely on Qt4 by using the qt3 support library. I haven't tested it
much, I'm not a Qt expert and there are warnings about not connected signals, although the buttons seem to
work like with the QT3 version (i.e. sampling starts stops and the data can be flushed, and the flags selected).

----------------------------------------------------------------------

>Comment By: William Cohen (wcohen)
Date: 2010-11-05 12:34

Message:
(Continue reading)

SourceForge.net | 5 Nov 2010 17:38
Picon
Favicon

[ oprofile-Bugs-3090939 ] Patch to move from QT3 to QT4[qt3support]

Bugs item #3090939, was opened at 2010-10-20 00:24
Message generated for change (Comment added) made by gerddie
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116191&aid=3090939&group_id=16191

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Gert Wollny (gerddie)
Assigned to: Maynard Johnson (maynardj)
Summary: Patch to move from QT3 to QT4[qt3support] 

Initial Comment:
It seems that QT3 is outdated and some distributions (like Gentoo) have phased out support for it.  With the
attached patch the GUI tool is moved to rely on Qt4 by using the qt3 support library. I haven't tested it
much, I'm not a Qt expert and there are warnings about not connected signals, although the buttons seem to
work like with the QT3 version (i.e. sampling starts stops and the data can be flushed, and the flags selected).

----------------------------------------------------------------------

>Comment By: Gert Wollny (gerddie)
Date: 2010-11-05 16:38

Message:
(Continue reading)


Gmane