Advertisement
Guest User

Untitled

a guest
Dec 16th, 2014
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.87 KB | None | 0 0
  1. [user@localhost ~]$ gprof ./ux gmon.out
  2. Flat profile:
  3.  
  4. Each sample counts as 0.01 seconds.
  5. no time accumulated
  6.  
  7. % cumulative self self total
  8. time seconds seconds calls Ts/call Ts/call name
  9. 0.00 0.00 0.00 1 0.00 0.00 test1
  10. 0.00 0.00 0.00 1 0.00 0.00 test2
  11.  
  12. % the percentage of the total running time of the
  13. time program used by this function.
  14.  
  15. cumulative a running sum of the number of seconds accounted
  16. seconds for by this function and those listed above it.
  17.  
  18. self the number of seconds accounted for by this
  19. seconds function alone. This is the major sort for this
  20. listing.
  21.  
  22. calls the number of times this function was invoked, if
  23. this function is profiled, else blank.
  24.  
  25. self the average number of milliseconds spent in this
  26. ms/call function per call, if this function is profiled,
  27. else blank.
  28.  
  29. total the average number of milliseconds spent in this
  30. ms/call function and its descendents per call, if this
  31. function is profiled, else blank.
  32.  
  33. name the name of the function. This is the minor sort
  34. for this listing. The index shows the location of
  35. the function in the gprof listing. If the index is
  36. in parenthesis it shows where it would appear in
  37. the gprof listing if it were to be printed.
  38.  
  39.  
  40. Copyright (C) 2012 Free Software Foundation, Inc.
  41.  
  42. Copying and distribution of this file, with or without modification,
  43. are permitted in any medium without royalty provided the copyright
  44. notice and this notice are preserved.
  45.  
  46.  
  47. Call graph (explanation follows)
  48.  
  49.  
  50. granularity: each sample hit covers 4 byte(s) no time propagated
  51.  
  52. index % time self children called name
  53. 0.00 0.00 1/1 main [10]
  54. [1] 0.0 0.00 0.00 1 test1 [1]
  55. -----------------------------------------------
  56. 0.00 0.00 1/1 main [10]
  57. [2] 0.0 0.00 0.00 1 test2 [2]
  58. -----------------------------------------------
  59.  
  60. This table describes the call tree of the program, and was sorted by
  61. the total amount of time spent in each function and its children.
  62.  
  63. Each entry in this table consists of several lines. The line with the
  64. index number at the left hand margin lists the current function.
  65. The lines above it list the functions that called this function,
  66. and the lines below it list the functions this one called.
  67. This line lists:
  68. index A unique number given to each element of the table.
  69. Index numbers are sorted numerically.
  70. The index number is printed next to every function name so
  71. it is easier to look up where the function is in the table.
  72.  
  73. % time This is the percentage of the `total' time that was spent
  74. in this function and its children. Note that due to
  75. different viewpoints, functions excluded by options, etc,
  76. these numbers will NOT add up to 100%.
  77.  
  78. self This is the total amount of time spent in this function.
  79.  
  80. children This is the total amount of time propagated into this
  81. function by its children.
  82.  
  83. called This is the number of times the function was called.
  84. If the function called itself recursively, the number
  85. only includes non-recursive calls, and is followed by
  86. a `+' and the number of recursive calls.
  87.  
  88. name The name of the current function. The index number is
  89. printed after it. If the function is a member of a
  90. cycle, the cycle number is printed between the
  91. function's name and the index number.
  92.  
  93.  
  94. For the function's parents, the fields have the following meanings:
  95.  
  96. self This is the amount of time that was propagated directly
  97. from the function into this parent.
  98.  
  99. children This is the amount of time that was propagated from
  100. the function's children into this parent.
  101.  
  102. called This is the number of times this parent called the
  103. function `/' the total number of times the function
  104. was called. Recursive calls to the function are not
  105. included in the number after the `/'.
  106.  
  107. name This is the name of the parent. The parent's index
  108. number is printed after it. If the parent is a
  109. member of a cycle, the cycle number is printed between
  110. the name and the index number.
  111.  
  112. If the parents of the function cannot be determined, the word
  113. `<spontaneous>' is printed in the `name' field, and all the other
  114. fields are blank.
  115.  
  116. For the function's children, the fields have the following meanings:
  117.  
  118. self This is the amount of time that was propagated directly
  119. from the child into the function.
  120.  
  121. children This is the amount of time that was propagated from the
  122. child's children to the function.
  123.  
  124. called This is the number of times the function called
  125. this child `/' the total number of times the child
  126. was called. Recursive calls by the child are not
  127. listed in the number after the `/'.
  128.  
  129. name This is the name of the child. The child's index
  130. number is printed after it. If the child is a
  131. member of a cycle, the cycle number is printed
  132. between the name and the index number.
  133.  
  134. If there are any cycles (circles) in the call graph, there is an
  135. entry for the cycle-as-a-whole. This entry shows who called the
  136. cycle (as parents) and the members of the cycle (as children.)
  137. The `+' recursive calls entry shows the number of function calls that
  138. were internal to the cycle, and the calls entry for each member shows,
  139. for that member, how many times it was called from other members of
  140. the cycle.
  141.  
  142.  
  143. Copyright (C) 2012 Free Software Foundation, Inc.
  144.  
  145. Copying and distribution of this file, with or without modification,
  146. are permitted in any medium without royalty provided the copyright
  147. notice and this notice are preserved.
  148.  
  149.  
  150. Index by function name
  151.  
  152. [1] test1 [2] test2
  153. [user@localhost ~]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement