Harwinder Sidhu

Notes on Profiling

Using gprof

Tools required to generate (beautiful)call graph

yum install graphviz
pip install gprof2dot

gprof2dot is also available from this link.

Generate Call Graph

/path/to/your/executable arg1 arg2
gprof path/to/your/executable | gprof2dot.py | dot -Tpng -o output.png
blog comments powered by Disqus