Alternatives to gprof

gprof, profiler, profiling

Solution

Valgrind has an instruction-count profiler with a very nice visualizer called KCacheGrind. As Mike Dunlavey recommends, Valgrind counts the fraction of instructions for which a procedure is live on the stack, although I'm sorry to say it appears to become confused in the presence of mutual recursion. But the visualizer is very nice and light years ahead of `gprof`.

Problem

What other programs do the same thing as gprof?

Original source

Related problems