JDiMatteo
JDiMatteo

Reputation: 13130

aggregating of function calls from WPR/xperf profiling data, e.g. KCacheGrind?

Is it possible to load WPR/xperf profiling data into KCacheGrind? Or is there a way to aggregate function calls in WPA directly? Or some other tool? Would the gprof2dot/graphviz route be the best option?

I find WPA useful, but grouping by stack in the "CPU Usage (Sampled)" table doesn't seem to allow sorting by aggregated function call count. For example, if function foo is called equally from 10 different places, it would be hard to identify foo as a potential bottleneck since each of the 10 code paths to foo will show as 10% or less of the weight. KCacheGrind solves this problem by allowing you to sort on cumulative time for each function.

How can I sort by cumulative time spent in each function with profiling on Windows, e.g. to identify low level shared functions like malloc as a bottlneck?

Upvotes: 3

Views: 663

Answers (0)

Related Questions