4 <h1><a name=
"gprof" id=
"gprof">Gprof
</a></h1>
9 <a href=
"http://www.cs.utah.edu/dept/old/texinfo/as/gprof.html" class=
"urlextern" title=
"http://www.cs.utah.edu/dept/old/texinfo/as/gprof.html" rel=
"nofollow">Gprof
</a> - determine which parts of a program are taking most of the execution time
<br/>
12 <div class=
"plugin_uparrow">
13 <a href=
"#" title=
"Back to top">
14 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
19 <!-- SECTION "Gprof" [1-164] -->
20 <h2><a name=
"how_to_compile" id=
"how_to_compile">How to compile
</a></h2>
25 Just add -pg option when compiling and linking.
27 <div class=
"plugin_uparrow">
28 <a href=
"#" title=
"Back to top">
29 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
34 <!-- SECTION "How to compile" [165-241] -->
35 <h2><a name=
"how_to_interpret_profile_data" id=
"how_to_interpret_profile_data">How to interpret profile data
</a></h2>
37 <pre class=
"code bash">$ gprof
<span class=
"re5">-c
</span> program_name
</pre>
38 <div class=
"plugin_uparrow">
39 <a href=
"#" title=
"Back to top">
40 <img src=
"lib/plugins/uparrow/images/tango-small.png" alt=
"Back to top"/>
45 <!-- SECTION "How to interpret profile data" [242-] -->