Saturday 5 June 2010

Profiling

http://www.garethstevens.com/products/CSS_Profiling.jpg

To profile your C++ code
  1. Add -pg to your compiling step and your linking step

  2. Run your program

  3. Convert profile information to a text file

    gprof executableFilename > textFilename

    For example,

    gprof Polyworld > gmon.txt

No comments:

Post a Comment