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 |
| 114 | ob=/usr/src/parrot/parrot-svn-committable/callgrind_test |
| 115 | # source file responsible for the next set of costs |
| 116 | fl=/usr/src/parrot/parrot-svn-committable/callgrind_test.c |
| 117 | # name of the function responsible for the next set of costs is "func2" |
| 118 | fn=func2 |
| 119 | # on line 21 of the current file, 6 cpu cycles passed |
| 120 | 21 6 |
| 121 | # on line 23, 6008 cpu cycles passed |
| 122 | 23 6008 |
| 123 | # on line 24 (before calling), 2 cpu cycles passed |
| 124 | 24 2 |
| 125 | # the function (in the same file) "func1" was called |
| 126 | cfn=func1 |
| 127 | # 'func1' was called nonrecursively from "func2" 2 times during profiling. Calling the function cost 16 cpu cycles. |
| 128 | calls=2 16 |
| 129 | # on line 24, the function itself cost 6018 cpu cycles |
| 130 | 24 6018 |
| 131 | # on line 25, 4 cpu cycles passed |
| 132 | 25 4 |
| 133 | |
| 134 | # the next costs apply to the function "main" |
| 135 | fn=main |
| 136 | # on line 9 of the current file (callgrind_test.c), 3 cpu cycles passed |
| 137 | 9 3 |
| 138 | # on line 10, 1 cycle passed before... |
| 139 | 10 1 |
| 140 | # the function (in the same file) "func1" was called |
| 141 | cfn=func1 |
| 142 | # the function was called 1 time; calling the function cost 16 cycles |
| 143 | calls=1 16 |
| 144 | # the call happened on line 10 and cost 3009 cycles |
| 145 | 10 3009 |
| 146 | # on line 11, 1 cycle passed before... |
| 147 | 11 1 |
| 148 | # the function (in the same file) "func2" was called |
| 149 | cfn=func2 |
| 150 | # the call happened once; calling the function cost 21 cycles |
| 151 | calls=1 21 |
| 152 | # the call happened on line 11; the function cost 6019 cycles |
| 153 | 11 6019 |
| 154 | # on line 12, 1 cycle passed before... |
| 155 | 12 1 |
| 156 | # the function "func3" was called |
| 157 | cfn=func3 |
| 158 | # it was called once and the call cost 27 cycles |
| 159 | calls=1 27 |
| 160 | #on line 12 (the function call), 12039 cycles passed |
| 161 | 12 12039 |
| 162 | |
| 163 | #now we're talking about "func1" |
| 164 | fn=func1 |
| 165 | # on line 16 of this function, 12 cpu cycles passed over the course of the process |
| 166 | 16 12 |
| 167 | # on line 18, 12016 cycles passed |
| 168 | 18 12016 |
| 169 | # on line 19, 8 cycles passed |
| 170 | 19 8 |
| 171 | # now we're talking about "func3" |
| 172 | fn=func3 |
| 173 | # on line 27, 3 cycles passed |
| 174 | 27 3 |
| 175 | # on line 29, 3004 cycles passed |
| 176 | 29 3004 |
| 177 | # on line 30, 1 cycle passed... |
| 178 | 30 1 |
| 179 | # "func2" was called |
| 180 | cfn=func2 |
| 181 | # it was called once with the call costing 21 cycles |
| 182 | calls=1 21 |
| 183 | # the function cost 6019 cycles |
| 184 | 30 6019 |
| 185 | # on line 31, 1 cycle passed... |
| 186 | 31 1 |
| 187 | # "func1" was called |
| 188 | cfn=func1 |
| 189 | # it was called once and the call cost 16 cycles |
| 190 | calls=1 16 |
| 191 | # the function was called on line 31 and cost 3009 cycles |
| 192 | 31 3009 |
| 193 | # etc |
| 194 | 32 2 |
| 195 | |
| 196 | # 21073 cycles passed during the part of the process under test that was instrumented |
| 197 | totals: 21073 |
| 198 | }}} |
| 199 | |