Programowanie w systemie UNIX/gprof: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
mv
Linia 27:
 
 
PrzykłądowyPrzykładowy wynik ( dla programu z commons<ref>[[:commons:File:Parabolic_Julia_set_for_internal_angle_1_over_20.png|Program z commons]]</ref> )zawiera 2 części :
* płaski profil
* graf wywołań
<pre>
Flat profile:
Linia 71 ⟶ 74:
in parenthesis it shows where it would appear in
the gprof listing if it were to be printed.
</pre>
 
<pre>
Call graph (explanation follows)
 
 
granularity: each sample hit covers 2 byte(s) for 0.05% of 18.68 seconds
 
index % time self children called name
<spontaneous>
[1] 61.6 2.00 9.51 ComputeRays [1]
2.99 6.51 200000241/200000241 dDrawLine.constprop.0 [2]
0.00 0.00 2/2 SaveFiles4ManualDebug [9]
0.00 0.00 1/1 FillGapsInRaysArray [10]
-----------------------------------------------
2.99 6.51 200000241/200000241 ComputeRays [1]
[2] 50.9 2.99 6.51 200000241 dDrawLine.constprop.0 [2]
6.51 0.00 200000162/200000162 iDrawLine [5]
-----------------------------------------------
7.07 0.00 4004001/4004001 ComputeFatouComponents [4]
[3] 37.9 7.07 0.00 4004001 ComputeColor [3]
-----------------------------------------------
<spontaneous>
[4] 37.9 0.00 7.07 ComputeFatouComponents [4]
7.07 0.00 4004001/4004001 ComputeColor [3]
-----------------------------------------------
6.51 0.00 200000162/200000162 dDrawLine.constprop.0 [2]
[5] 34.9 6.51 0.00 200000162 iDrawLine [5]
-----------------------------------------------
<spontaneous>
[6] 0.3 0.06 0.00 ColourNewTrap [6]
-----------------------------------------------
<spontaneous>
[7] 0.2 0.03 0.00 ComputeBoundariesIn [7]
-----------------------------------------------
<spontaneous>
[8] 0.1 0.01 0.00 CopyRaysTo [8]
-----------------------------------------------
0.00 0.00 2/2 ComputeRays [1]
[9] 0.0 0.00 0.00 2 SaveFiles4ManualDebug [9]
-----------------------------------------------
0.00 0.00 1/1 ComputeRays [1]
[10] 0.0 0.00 0.00 1 FillGapsInRaysArray [10]
-----------------------------------------------
0.00 0.00 1/1 setup [38]
[11] 0.0 0.00 0.00 1 GiveC [11]
-----------------------------------------------
 
This table describes the call tree of the program, and was sorted by
the total amount of time spent in each function and its children.
 
</pre>