ProAnswers.org

what is Alternatives to gprof in linux ?

what is Alternatives to gprof in linux ?

Valgrind(http://en.wikipedia.org/wiki/Valgrind) has an instruction-count profiler with a very nice visualizer called KCacheGrind(http://en.wikipedia.org/wiki/Valgrind#Tools). 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.