profile
valgrind —tool=callgrind [program] gprof2dot -f callgrind -o [dotfile] [inputfile] dot -Tpng [dotfile] > [pngfile]