http://www.garethstevens.com/products/CSS_Profiling.jpgTo profile your C++ code
- Add -pg to your compiling step and your linking step
- Run your program
- Convert profile information to a text file
gprof executableFilename > textFilename
For example,
gprof Polyworld > gmon.txt
No comments:
Post a Comment