1,885
edits
Changes
→Thursday (Jan 15)
=== Thursday (Jan 15) ===
* [[Benchmarking and ]]* [[Profiling]] ** Profiling with <code>gprof</code>*** Build with profiling enabled (use the option <code>-pg</code> with both gcc and ld)*** Run the profile-enabled executable*** Analyze the data in the <code>gmon.out</code> file**** <code>gprof ''nameOfBinary''</code> # Displays text profile including call graph**** <code>gprof ''nameOfBinary'' | gprof2dot | dot | display -</code> # Displays visualization of call graph
Resources