Am 05.07.2016 um 03:22 schrieb Yang Liu: > I'm trying to get a call graph where the edge weights are call times > rather than instruction counts. I didn't find a clear documentation > though. The closest I got is some mentioning of event type. But I don't > see the event name for call times.
Call counts are semantically different from other event types, which can be aggregated over the whole run e.g. for inclusive costs. And it makes no sense to compare call counts of different functions directly. Therefore call counts are differently handled than other costs. However, callgrind_annotate does show the call counts after function names of callers and callees of functions. For this, you have to ues e.g. "--tree=both": ... 120,470 < _dl_lookup_symbol_x (203x) [/lib/x86_64-linux-gnu/ld-2.23.so] 67,527 * do_lookup_x [/lib/x86_64-linux-gnu/ld-2.23.so] 22,407 > check_match (186x) [/lib/x86_64-linux-gnu/ld-2.23.so] 30,536 > dl_name_match_p (309x) [/lib/x86_64-linux-gnu/ld-2.23.so] ... Josef > I've looked at the pid.out file's format. The call times is in there. So > can anyone help me? > > Cheers, > Yang Liu ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users