gprof2dot --format=callgrind --output=out.dot ~/callgrind.out dot -Tpng out.dot -o graph-RCF.png The above uses gprof2dot.