backup de julho
[h2N7SspZmY.git] / data / cache / 9 / 9c3a039ab94f233234934666752e6279.xhtml
blob98cc36d48282f31df0b1e85995bebfa30a6a4090
4 <h1><a name="gprof" id="gprof">Gprof</a></h1>
5 <div class="level1">
7 <p>
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/>
11 </p>
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"/>
15 </a>
16 </div>
18 </div>
19 <!-- SECTION "Gprof" [1-164] -->
20 <h2><a name="how_to_compile" id="how_to_compile">How to compile</a></h2>
21 <div class="level2">
23 <p>
25 Just add -pg option when compiling and linking.
26 </p>
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"/>
30 </a>
31 </div>
33 </div>
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>
36 <div class="level2">
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"/>
41 </a>
42 </div>
44 </div>
45 <!-- SECTION "How to interpret profile data" [242-] -->