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

Usunięta treść Dodana treść
Linia 19:
 
gprof ./a.out > prof.txt
 
 
<pre>
Flat profile:
 
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls us/call us/call name
37.89 7.07 7.07 4004001 1.77 1.77 ComputeColor
34.89 13.59 6.51 200000162 0.03 0.03 iDrawLine
16.03 16.58 2.99 200000241 0.01 0.05 dDrawLine.constprop.0
10.72 18.58 2.00 ComputeRays
0.32 18.64 0.06 ColourNewTrap
0.16 18.67 0.03 ComputeBoundariesIn
0.05 18.68 0.01 CopyRaysTo
0.00 18.68 0.00 2 0.00 0.00 SaveFiles4ManualDebug
0.00 18.68 0.00 1 0.00 0.00 FillGapsInRaysArray
0.00 18.68 0.00 1 0.00 0.00 GiveC
 
% the percentage of the total running time of the
time program used by this function.
 
cumulative a running sum of the number of seconds accounted
seconds for by this function and those listed above it.
 
self the number of seconds accounted for by this
seconds function alone. This is the major sort for this
listing.
 
calls the number of times this function was invoked, if
this function is profiled, else blank.
self the average number of milliseconds spent in this
ms/call function per call, if this function is profiled,
else blank.
 
total the average number of milliseconds spent in this
ms/call function and its descendents per call, if this
function is profiled, else blank.
 
name the name of the function. This is the minor sort
for this listing. The index shows the location of
the function in the gprof listing. If the index is
in parenthesis it shows where it would appear in
the gprof listing if it were to be printed.
</pre>