The printout of fprof analyse is a text dump of the result, which can
grow over 1000 lines and contains a lot of noise which makes it hard
to locate the bottlenecks. Below a truncated
sample of an actual fprof trace.
KCachegrind to the rescue! With this tool you can visually inspect the fprof
analyse result with sorting, a fancy call graph view, callee map and
As KCachegrind can’t read fprof analysis output directly, you need to
convert it first to the callgrind format with the Erlgrind script by Isac Sacchi e Souza.
$ ./erlgrind outfile.fprof callgrind.001
KCachegrind & Erlgrind Installation
For installation of KCachegrind on my Mac I use
Homebrew, a package manager for OSX. Notice that you
install qcachegrind, the QT version of