Changes between Version 1 and Version 2 of CallgrindFormat

Show
Ignore:
Timestamp:
07/26/09 08:07:58 (5 years ago)
Author:
cotto
Comment:

add annotated body of a profile

Legend:

Unmodified
Added
Removed
Modified
  • CallgrindFormat

    v1 v2  
    109109=== Annotated Body from the Profile of above C Code === 
    110110 
    111 This space for rent. 
     111{{{ 
     112#!sh 
     113# "ob" means object file, i.e. the ELF executable where the next set of costs occur 
     114ob=/usr/src/parrot/parrot-svn-committable/callgrind_test 
     115# source file responsible for the next set of costs 
     116fl=/usr/src/parrot/parrot-svn-committable/callgrind_test.c 
     117# name of the function responsible for the next set of costs is "func2" 
     118fn=func2 
     119# on line 21 of the current file, 6 cpu cycles passed 
     12021 6 
     121# on line 23, 6008 cpu cycles passed 
     12223 6008 
     123# on line 24 (before calling), 2 cpu cycles passed 
     12424 2 
     125# the function (in the same file) "func1" was called 
     126cfn=func1 
     127# 'func1' was called nonrecursively from "func2" 2 times during profiling.  Calling the function cost 16 cpu cycles. 
     128calls=2 16 
     129# on line 24, the function itself cost 6018 cpu cycles 
     13024 6018 
     131# on line 25, 4 cpu cycles passed  
     13225 4 
     133 
     134# the next costs apply to the function "main" 
     135fn=main 
     136# on line 9 of the current file (callgrind_test.c), 3 cpu cycles passed 
     1379 3 
     138# on line 10, 1 cycle passed before... 
     13910 1 
     140# the function (in the same file) "func1" was called 
     141cfn=func1 
     142# the function was called 1 time; calling the function cost 16 cycles 
     143calls=1 16 
     144# the call happened on line 10 and cost 3009 cycles 
     14510 3009 
     146# on line 11, 1 cycle passed before... 
     14711 1 
     148# the function (in the same file) "func2" was called 
     149cfn=func2 
     150# the call happened once; calling the function cost 21 cycles 
     151calls=1 21 
     152# the call happened on line 11; the function cost 6019 cycles 
     15311 6019 
     154# on line 12, 1 cycle passed before... 
     15512 1 
     156# the function "func3" was called 
     157cfn=func3 
     158# it was called once and the call cost 27 cycles 
     159calls=1 27 
     160#on line 12 (the function call), 12039 cycles passed 
     16112 12039 
     162 
     163#now we're talking about "func1" 
     164fn=func1 
     165# on line 16 of this function, 12 cpu cycles passed over the course of the process 
     16616 12 
     167# on line 18, 12016 cycles passed 
     16818 12016 
     169# on line 19, 8 cycles passed 
     17019 8 
     171# now we're talking about "func3" 
     172fn=func3 
     173# on line 27, 3 cycles passed 
     17427 3 
     175# on line 29, 3004 cycles passed 
     17629 3004 
     177# on line 30, 1 cycle passed... 
     17830 1 
     179# "func2" was called 
     180cfn=func2 
     181# it was called once with the call costing 21 cycles 
     182calls=1 21 
     183# the function cost 6019 cycles 
     18430 6019 
     185# on line 31, 1 cycle passed... 
     18631 1 
     187# "func1" was called 
     188cfn=func1 
     189# it was called once and the call cost 16 cycles 
     190calls=1 16 
     191# the function was called on line 31 and cost 3009 cycles 
     19231 3009 
     193# etc 
     19432 2 
     195 
     196# 21073 cycles passed during the part of the process under test that was instrumented 
     197totals: 21073 
     198}}} 
     199