Callgrind: how to limit data gathering according to function location?

View: New views
2 Messages — Rating Filter:   Alert me  

Callgrind: how to limit data gathering according to function location?

by Adrian Marques-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear all,

I'm trying to get the call graph of a program and want to limit
callgrind's gathering of data to just my code, ignoring all functions
within any libraries I link against.

Is this possible? I've gone through the docs and searched the list but
didn't find anything.
Right now I'm getting info on tons of functions from locations
ld-2.7.so, libc-2.7.so, etc., that I don't need.

Thanks for your attention.

Best regards.

Adrian.



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Valgrind-users mailing list
Valgrind-users@...
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Parent Message unknown Re: Callgrind: how to limit data gathering according to function location?

by Bugzilla from josef.weidendorfer@gmx.de :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Friday 09 October 2009, Adrian Marques wrote:
> Dear all,
>
> I'm trying to get the call graph of a program and want to limit
> callgrind's gathering of data to just my code, ignoring all functions
> within any libraries I link against.

What do you want to accomplish? Is the amount of data written
out by callgrind a limiting factor for you? If not, the best way to
reach your goal is to just ignore all the data not coming from your
code at analysis/visualization time.

There is a callgrind option "--fn-skip=<function>", which does not
note calls to a given function, but adds the cost of these ignored
functions to the caller instead. Yes, there is no way to ignore all
functions from a library this way. But this option is in fact only
provided to get rid of recursive cycles because of dispatcher functions.

Josef

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Valgrind-users mailing list
Valgrind-users@...
https://lists.sourceforge.net/lists/listinfo/valgrind-users