Tuesday, June 15, 2010

OProfile + Gprof2Dot commands in order to get wonderful profiling graphs

opcontrol --reset
opcontrol --start
[run your application]
opcontrol --shutdown
opreport -cg ./my_test /usr/lib/my_libraries | python gprof2dot.py -f oprofile | dot -Tpng -o output.png


0 comments: