How to find hot spot in a C or C++ program? -


i want find hot spots in mibench benchmark suit programs. want find out variables , functions called during execution of program. i've searched free useful tool couldn't find want. there free tool purpose?

use gprof, can compile code -pg, such

gcc test.cpp -pg -o test ./test gprof -b -a -p -q test gmon.out 

then print stat info of code, read gprof documentation understand better.

also if want see detail of code, such cache miss rate or else that, can try tau.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -