Thank you very much.  I've read that section on cycles several times in the 
last few days, but I missed that.  It would helped my Google searches and my 
eyes if the manual used the parens: "functions with names "func()", "func()'2", 
"func()'3" and so on..."  Hopefully the manual's authors will read this and 
consider a clarification.

It's odd that I see some instances of foo()'2 without a corresponding foo().  
Once example is memset()'2.  That's probably why I suspected the notation 
referred to threads.  I must have some cycle issues to explore further.  
Callgrind did identify some cycles, to my surprise.

Again, thanks.
Steve

-----Original Message-----
From: Hien Le [mailto:[email protected]]
Sent: Wednesday, June 30, 2010 6:52 PM
To: Steven Meuse
Subject: Re: [Valgrind-users] KCachegrind notation- what is '2 in "foo()'2"?

from http://valgrind.org/docs/manual/cl-manual.html#cl-manual.cycles :

If you have a recursive function, you can distinguish the first 10
recursion levels by specifying |--separate-recs10
<http://valgrind.org/docs/manual/cl-manual.html#opt.separate-recs-num>=function|.
Or for all functions with |--separate-recs
<http://valgrind.org/docs/manual/cl-manual.html#opt.separate-recs>=10|,
but this will give you much bigger profile data files. In the profile
data, you will see the recursion levels of "func" as the different
functions with names "func", "func'2", "func'3" and so on.

> Date: Wed, 30 Jun 2010 17:54:29 -0400
> From: Steven Meuse <[email protected]>
> Subject: [Valgrind-users] KCachegrind notation- what is '2 in
>       "foo()'2"?
> To: "'[email protected]'"
>       <[email protected]>
> Message-ID:
>       <0a40042d85e7c84db443060ec44b3fd3253eef5...@dekaexchange07.deka.local>
> Content-Type: text/plain; charset="us-ascii"
>
> I've searched Google and read all I could find.  I've profiled a 
> multi-threaded program with callgrind, and I'm using KCachegrind to visualize 
> the results.  In the flat profile and other views, some function names have a 
> '2 appended to them.  Some are duplicates, some aren't.  For instance, I have 
> a "QTime::start()" and a "QTime::start()'2", but I also have functions with 
> or without this notation that don't have a partner in the opposite state.
>
> I hope this is an appropriate place to ask this question.  What does this 
> notation mean, and is there a more up-to-date document describing KCachegrind?
>
> Thanks,
> Steve
>


DISCLAIMER: The email system may append a confidentiality notice to this 
message.  This email is intended for a public forum and is not subject to this 
confidentiality notice.

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

This e-mail and the information, including any attachments, it contains are 
intended to be a confidential communication only to the person or entity to 
whom it is addressed and may contain information that is privileged. If the 
reader of this message is not the intended recipient, you are hereby notified 
that any dissemination, distribution or copying of this communication is 
strictly prohibited. If you have received this communication in error, please 
immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to