|
From: Josef W. <Jos...@gm...> - 2009-10-09 16:04:47
|
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 |