Reputation: 30605
I am profiling my C++ application with Valgrind's Cachegrind, using this terminal line:
valgrind --branch-sim=yes --tool=cachegrind ./myProgram
and from the online guides I have seen this should automatically present function-level profiling results. However, I am only getting the program-level results.
What else do I need to specify to see the results for each function?
UPDATE
Ok I needed to run this:
cg_annotate cachegrind.out.XXXX
to get the function-level results.
Upvotes: 1
Views: 493