Advertisement
lamiastella

Tracking gprof result

Jun 22nd, 2013
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.60 KB | None | 0 0
  1. Flat profile:
  2.  
  3. Each sample counts as 0.01 seconds.
  4. % cumulative self self total
  5. time seconds seconds calls ms/call ms/call name
  6. 13.78 0.26 0.26 fread
  7. 12.97 0.50 0.24 imageBlur
  8. 12.43 0.73 0.23 calcSobel_dY
  9. 8.65 0.89 0.16 637 0.25 0.25 fSetArray
  10. 8.11 1.04 0.15 3 50.00 50.50 calcAreaSum
  11. 7.03 1.17 0.13 calcSobel_dX
  12. 6.49 1.29 0.12 imageResize
  13. 6.49 1.41 0.12 readImage
  14. 4.86 1.50 0.09 _IO_file_xsgetn
  15. 3.78 1.57 0.07 572 0.12 0.37 getInterpolatePatch
  16. 3.24 1.63 0.06 memcpy
  17. 2.16 1.67 0.04 calcGoodFeature
  18. 1.08 1.69 0.02 15 1.33 1.33 fDeepCopy
  19. 1.08 1.71 0.02 __read_nocancel
  20. 1.08 1.73 0.02 __strcasecmp_l_avx
  21. 1.08 1.75 0.02 fillFeatures
  22. 0.81 1.76 0.02 _L_unlock_163
  23. 0.54 1.77 0.01 _IO_default_xsputn
  24. 0.54 1.78 0.01 _IO_file_xsgetn_mmap
  25. 0.54 1.79 0.01 _IO_sgetn
  26. 0.54 1.80 0.01 __close_nocancel
  27. 0.54 1.81 0.01 __open_nocancel
  28. 0.54 1.82 0.01 brk
  29. 0.54 1.83 0.01 calcPyrLKTrack
  30. 0.54 1.84 0.01 fReshape
  31. 0.54 1.85 0.01 fcntl
  32. 0.00 1.85 0.00 725 0.00 0.00 fMallocHandle
  33. 0.00 1.85 0.00 667 0.00 0.00 fFreeHandle
  34. 0.00 1.85 0.00 48 0.00 0.00 iMallocHandle
  35. 0.00 1.85 0.00 39 0.00 0.00 iFreeHandle
  36. 0.00 1.85 0.00 4 0.00 0.00 ffVertcat
  37. 0.00 1.85 0.00 4 0.00 0.00 iSetArray
  38. 0.00 1.85 0.00 1 0.00 0.00 main
  39.  
  40. % the percentage of the total running time of the
  41. time program used by this function.
  42.  
  43. cumulative a running sum of the number of seconds accounted
  44. seconds for by this function and those listed above it.
  45.  
  46. self the number of seconds accounted for by this
  47. seconds function alone. This is the major sort for this
  48. listing.
  49.  
  50. calls the number of times this function was invoked, if
  51. this function is profiled, else blank.
  52.  
  53. self the average number of milliseconds spent in this
  54. ms/call function per call, if this function is profiled,
  55. else blank.
  56.  
  57. total the average number of milliseconds spent in this
  58. ms/call function and its descendents per call, if this
  59. function is profiled, else blank.
  60.  
  61. name the name of the function. This is the minor sort
  62. for this listing. The index shows the location of
  63. the function in the gprof listing. If the index is
  64. in parenthesis it shows where it would appear in
  65. the gprof listing if it were to be printed.
  66. Call graph (explanation follows)
  67.  
  68.  
  69. granularity: each sample hit covers 2 byte(s) for 0.54% of 1.85 seconds
  70.  
  71. index % time self children called name
  72. <spontaneous>
  73. [1] 13.8 0.26 0.00 fread [1]
  74. -----------------------------------------------
  75. <spontaneous>
  76. [2] 13.1 0.24 0.00 imageBlur [2]
  77. 0.00 0.00 10/637 fSetArray [7]
  78. 0.00 0.00 5/48 iMallocHandle [30]
  79. 0.00 0.00 5/667 fFreeHandle [29]
  80. 0.00 0.00 5/39 iFreeHandle [31]
  81. -----------------------------------------------
  82. <spontaneous>
  83. [3] 12.7 0.23 0.00 calcSobel_dY [3]
  84. 0.00 0.00 18/637 fSetArray [7]
  85. 0.00 0.00 18/48 iMallocHandle [30]
  86. 0.00 0.00 18/39 iFreeHandle [31]
  87. 0.00 0.00 9/667 fFreeHandle [29]
  88. -----------------------------------------------
  89. <spontaneous>
  90. [4] 12.1 0.01 0.21 calcPyrLKTrack [4]
  91. 0.07 0.14 572/572 getInterpolatePatch [5]
  92. 0.00 0.00 576/667 fFreeHandle [29]
  93. 0.00 0.00 4/48 iMallocHandle [30]
  94. 0.00 0.00 4/725 fMallocHandle [28]
  95. 0.00 0.00 4/4 iSetArray [33]
  96. 0.00 0.00 4/39 iFreeHandle [31]
  97. -----------------------------------------------
  98. 0.07 0.14 572/572 calcPyrLKTrack [4]
  99. [5] 11.5 0.07 0.14 572 getInterpolatePatch [5]
  100. 0.14 0.00 572/637 fSetArray [7]
  101. -----------------------------------------------
  102. <spontaneous>
  103. [6] 10.4 0.04 0.15 calcGoodFeature [6]
  104. 0.15 0.00 3/3 calcAreaSum [8]
  105. 0.00 0.00 8/667 fFreeHandle [29]
  106. 0.00 0.00 6/725 fMallocHandle [28]
  107. -----------------------------------------------
  108. 0.00 0.00 1/637 fillFeatures [15]
  109. 0.00 0.00 2/637 getANMS [14]
  110. 0.00 0.00 6/637 calcAreaSum [8]
  111. 0.00 0.00 10/637 imageBlur [2]
  112. 0.00 0.00 10/637 imageResize [10]
  113. 0.00 0.00 18/637 calcSobel_dX [9]
  114. 0.00 0.00 18/637 calcSobel_dY [3]
  115. 0.14 0.00 572/637 getInterpolatePatch [5]
  116. [7] 8.6 0.16 0.00 637 fSetArray [7]
  117. 0.00 0.00 646/725 fMallocHandle [28]
  118. -----------------------------------------------
  119. 0.15 0.00 3/3 calcGoodFeature [6]
  120. [8] 8.2 0.15 0.00 3 calcAreaSum [8]
  121. 0.00 0.00 6/637 fSetArray [7]
  122. 0.00 0.00 6/667 fFreeHandle [29]
  123. 0.00 0.00 3/725 fMallocHandle [28]
  124. -----------------------------------------------
  125. <spontaneous>
  126. [9] 7.3 0.13 0.00 calcSobel_dX [9]
  127. 0.00 0.00 18/637 fSetArray [7]
  128. 0.00 0.00 27/667 fFreeHandle [29]
  129. 0.00 0.00 18/725 fMallocHandle [28]
  130. -----------------------------------------------
  131. <spontaneous>
  132. [10] 6.6 0.12 0.00 imageResize [10]
  133. 0.00 0.00 10/637 fSetArray [7]
  134. 0.00 0.00 5/48 iMallocHandle [30]
  135. 0.00 0.00 5/667 fFreeHandle [29]
  136. 0.00 0.00 5/39 iFreeHandle [31]
  137. -----------------------------------------------
  138. <spontaneous>
  139. [11] 6.5 0.12 0.00 readImage [11]
  140. 0.00 0.00 5/48 iMallocHandle [30]
  141. -----------------------------------------------
  142. <spontaneous>
  143. [12] 4.9 0.09 0.00 _IO_file_xsgetn [12]
  144. -----------------------------------------------
  145. <spontaneous>
  146. [13] 3.2 0.06 0.00 memcpy [13]
  147. -----------------------------------------------
  148. <spontaneous>
  149. [14] 1.1 0.00 0.02 getANMS [14]
  150. 0.02 0.00 15/15 fDeepCopy [16]
  151. 0.00 0.00 2/637 fSetArray [7]
  152. 0.00 0.00 31/667 fFreeHandle [29]
  153. 0.00 0.00 11/725 fMallocHandle [28]
  154. 0.00 0.00 7/48 iMallocHandle [30]
  155. 0.00 0.00 7/39 iFreeHandle [31]
  156. 0.00 0.00 4/4 ffVertcat [32]
  157. -----------------------------------------------
  158. <spontaneous>
  159. [15] 1.1 0.02 0.00 fillFeatures [15]
  160. 0.00 0.00 1/637 fSetArray [7]
  161. -----------------------------------------------
  162. 0.02 0.00 15/15 getANMS [14]
  163. [16] 1.1 0.02 0.00 15 fDeepCopy [16]
  164. 0.00 0.00 31/725 fMallocHandle [28]
  165. -----------------------------------------------
  166. <spontaneous>
  167. [17] 1.1 0.02 0.00 __read_nocancel [17]
  168. -----------------------------------------------
  169. <spontaneous>
  170. [18] 1.1 0.02 0.00 __strcasecmp_l_avx [18]
  171. -----------------------------------------------
  172. <spontaneous>
  173. [19] 0.8 0.02 0.00 _L_unlock_163 [19]
  174. -----------------------------------------------
  175. <spontaneous>
  176. [20] 0.5 0.01 0.00 brk [20]
  177. -----------------------------------------------
  178. <spontaneous>
  179. [21] 0.5 0.01 0.00 fReshape [21]
  180. 0.00 0.00 1/725 fMallocHandle [28]
  181. -----------------------------------------------
  182. <spontaneous>
  183. [22] 0.5 0.01 0.00 fcntl [22]
  184. -----------------------------------------------
  185. <spontaneous>
  186. [23] 0.5 0.01 0.00 _IO_default_xsputn [23]
  187. -----------------------------------------------
  188. <spontaneous>
  189. [24] 0.5 0.01 0.00 _IO_file_xsgetn_mmap [24]
  190. -----------------------------------------------
  191. <spontaneous>
  192. [25] 0.5 0.01 0.00 _IO_sgetn [25]
  193. -----------------------------------------------
  194. <spontaneous>
  195. [26] 0.5 0.01 0.00 __close_nocancel [26]
  196. -----------------------------------------------
  197. <spontaneous>
  198. [27] 0.5 0.01 0.00 __open_nocancel [27]
  199. -----------------------------------------------
  200. 0.00 0.00 1/725 fReshape [21]
  201. 0.00 0.00 1/725 fTranspose [124]
  202. 0.00 0.00 3/725 calcAreaSum [8]
  203. 0.00 0.00 4/725 calcPyrLKTrack [4]
  204. 0.00 0.00 4/725 ffVertcat [32]
  205. 0.00 0.00 6/725 calcGoodFeature [6]
  206. 0.00 0.00 11/725 getANMS [14]
  207. 0.00 0.00 18/725 calcSobel_dX [9]
  208. 0.00 0.00 31/725 fDeepCopy [16]
  209. 0.00 0.00 646/725 fSetArray [7]
  210. [28] 0.0 0.00 0.00 725 fMallocHandle [28]
  211. -----------------------------------------------
  212. 0.00 0.00 5/667 imageBlur [2]
  213. 0.00 0.00 5/667 imageResize [10]
  214. 0.00 0.00 6/667 calcAreaSum [8]
  215. 0.00 0.00 8/667 calcGoodFeature [6]
  216. 0.00 0.00 9/667 calcSobel_dY [3]
  217. 0.00 0.00 27/667 calcSobel_dX [9]
  218. 0.00 0.00 31/667 getANMS [14]
  219. 0.00 0.00 576/667 calcPyrLKTrack [4]
  220. [29] 0.0 0.00 0.00 667 fFreeHandle [29]
  221. -----------------------------------------------
  222. 0.00 0.00 4/48 calcPyrLKTrack [4]
  223. 0.00 0.00 4/48 iSetArray [33]
  224. 0.00 0.00 5/48 imageBlur [2]
  225. 0.00 0.00 5/48 imageResize [10]
  226. 0.00 0.00 5/48 readImage [11]
  227. 0.00 0.00 7/48 getANMS [14]
  228. 0.00 0.00 18/48 calcSobel_dY [3]
  229. [30] 0.0 0.00 0.00 48 iMallocHandle [30]
  230. -----------------------------------------------
  231. 0.00 0.00 4/39 calcPyrLKTrack [4]
  232. 0.00 0.00 5/39 imageBlur [2]
  233. 0.00 0.00 5/39 imageResize [10]
  234. 0.00 0.00 7/39 getANMS [14]
  235. 0.00 0.00 18/39 calcSobel_dY [3]
  236. [31] 0.0 0.00 0.00 39 iFreeHandle [31]
  237. -----------------------------------------------
  238. 0.00 0.00 4/4 getANMS [14]
  239. [32] 0.0 0.00 0.00 4 ffVertcat [32]
  240. 0.00 0.00 4/725 fMallocHandle [28]
  241. -----------------------------------------------
  242. 0.00 0.00 4/4 calcPyrLKTrack [4]
  243. [33] 0.0 0.00 0.00 4 iSetArray [33]
  244. 0.00 0.00 4/48 iMallocHandle [30]
  245. -----------------------------------------------
  246. 0.00 0.00 1/1 __libc_start_main [1060]
  247. [34] 0.0 0.00 0.00 1 main [34]
  248. -----------------------------------------------
  249.  
  250. This table describes the call tree of the program, and was sorted by
  251. the total amount of time spent in each function and its children.
  252.  
  253. Each entry in this table consists of several lines. The line with the
  254. index number at the left hand margin lists the current function.
  255. The lines above it list the functions that called this function,
  256. and the lines below it list the functions this one called.
  257. This line lists:
  258. index A unique number given to each element of the table.
  259. Index numbers are sorted numerically.
  260. The index number is printed next to every function name so
  261. it is easier to look up where the function in the table.
  262.  
  263. % time This is the percentage of the `total' time that was spent
  264. in this function and its children. Note that due to
  265. different viewpoints, functions excluded by options, etc,
  266. these numbers will NOT add up to 100%.
  267.  
  268. self This is the total amount of time spent in this function.
  269.  
  270. children This is the total amount of time propagated into this
  271. function by its children.
  272.  
  273. called This is the number of times the function was called.
  274. If the function called itself recursively, the number
  275. only includes non-recursive calls, and is followed by
  276. a `+' and the number of recursive calls.
  277.  
  278. name The name of the current function. The index number is
  279. printed after it. If the function is a member of a
  280. cycle, the cycle number is printed between the
  281. function's name and the index number.
  282.  
  283.  
  284. For the function's parents, the fields have the following meanings:
  285.  
  286. self This is the amount of time that was propagated directly
  287. from the function into this parent.
  288.  
  289. children This is the amount of time that was propagated from
  290. the function's children into this parent.
  291.  
  292. called This is the number of times this parent called the
  293. function `/' the total number of times the function
  294. was called. Recursive calls to the function are not
  295. included in the number after the `/'.
  296.  
  297. name This is the name of the parent. The parent's index
  298. number is printed after it. If the parent is a
  299. member of a cycle, the cycle number is printed between
  300. the name and the index number.
  301.  
  302. If the parents of the function cannot be determined, the word
  303. `<spontaneous>' is printed in the `name' field, and all the other
  304. fields are blank.
  305.  
  306. For the function's children, the fields have the following meanings:
  307.  
  308. self This is the amount of time that was propagated directly
  309. from the child into the function.
  310.  
  311. children This is the amount of time that was propagated from the
  312. child's children to the function.
  313.  
  314. called This is the number of times the function called
  315. this child `/' the total number of times the child
  316. was called. Recursive calls by the child are not
  317. listed in the number after the `/'.
  318.  
  319. name This is the name of the child. The child's index
  320. number is printed after it. If the child is a
  321. member of a cycle, the cycle number is printed
  322. between the name and the index number.
  323.  
  324. If there are any cycles (circles) in the call graph, there is an
  325. entry for the cycle-as-a-whole. This entry shows who called the
  326. cycle (as parents) and the members of the cycle (as children.)
  327. The `+' recursive calls entry shows the number of function calls that
  328. were internal to the cycle, and the calls entry for each member shows,
  329. for that member, how many times it was called from other members of
  330. the cycle.
  331.  
  332. Index by function name
  333.  
  334. [23] _IO_default_xsputn [6] calcGoodFeature [15] fillFeatures
  335. [12] _IO_file_xsgetn [4] calcPyrLKTrack [1] fread
  336. [24] _IO_file_xsgetn_mmap [9] calcSobel_dX [5] getInterpolatePatch
  337. [25] _IO_sgetn [3] calcSobel_dY [31] iFreeHandle
  338. [19] _L_unlock_163 [16] fDeepCopy [30] iMallocHandle
  339. [26] __close_nocancel [29] fFreeHandle [33] iSetArray
  340. [27] __open_nocancel [28] fMallocHandle [2] imageBlur
  341. [17] __read_nocancel [21] fReshape [10] imageResize
  342. [18] __strcasecmp_l_avx [7] fSetArray [34] main
  343. [20] brk [22] fcntl [13] memcpy
  344. [8] calcAreaSum [32] ffVertcat [11] readImage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement