pprof.1 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
  2. .TH PPROF "1" "February 2005" "pprof (part of gperftools)" Google
  3. .SH NAME
  4. pprof \- manual page for pprof (part of gperftools)
  5. .SH SYNOPSIS
  6. .B pprof
  7. [\fIoptions\fR] \fI<program> <profile>\fR
  8. .SH DESCRIPTION
  9. .IP
  10. Prints specified cpu- or heap-profile
  11. .SH OPTIONS
  12. .TP
  13. \fB\-\-cum\fR
  14. Sort by cumulative data
  15. .TP
  16. \fB\-\-base=\fR<base>
  17. Subtract <base> from <profile> before display
  18. .SS "Reporting Granularity:"
  19. .TP
  20. \fB\-\-addresses\fR
  21. Report at address level
  22. .TP
  23. \fB\-\-lines\fR
  24. Report at source line level
  25. .TP
  26. \fB\-\-functions\fR
  27. Report at function level [default]
  28. .TP
  29. \fB\-\-files\fR
  30. Report at source file level
  31. .SS "Output type:"
  32. .TP
  33. \fB\-\-text\fR
  34. Generate text report [default]
  35. .TP
  36. \fB\-\-gv\fR
  37. Generate Postscript and display
  38. .TP
  39. \fB\-\-list=\fR<regexp>
  40. Generate source listing of matching routines
  41. .TP
  42. \fB\-\-disasm=\fR<regexp>
  43. Generate disassembly of matching routines
  44. .TP
  45. \fB\-\-dot\fR
  46. Generate DOT file to stdout
  47. .TP
  48. \fB\-\-ps\fR
  49. Generate Postscript to stdout
  50. .TP
  51. \fB\-\-pdf\fR
  52. Generate PDF to stdout
  53. .TP
  54. \fB\-\-gif\fR
  55. Generate GIF to stdout
  56. .SS "Heap-Profile Options:"
  57. .TP
  58. \fB\-\-inuse_space\fR
  59. Display in-use (mega)bytes [default]
  60. .TP
  61. \fB\-\-inuse_objects\fR
  62. Display in-use objects
  63. .TP
  64. \fB\-\-alloc_space\fR
  65. Display allocated (mega)bytes
  66. .TP
  67. \fB\-\-alloc_objects\fR
  68. Display allocated objects
  69. .TP
  70. \fB\-\-show_bytes\fR
  71. Display space in bytes
  72. .TP
  73. \fB\-\-drop_negative\fR
  74. Ignore negaive differences
  75. .SS "Call-graph Options:"
  76. .TP
  77. \fB\-\-nodecount=\fR<n>
  78. Show at most so many nodes [default=80]
  79. .TP
  80. \fB\-\-nodefraction=\fR<f>
  81. Hide nodes below <f>*total [default=.005]
  82. .TP
  83. \fB\-\-edgefraction=\fR<f>
  84. Hide edges below <f>*total [default=.001]
  85. .TP
  86. \fB\-\-focus=\fR<regexp>
  87. Focus on nodes matching <regexp>
  88. .TP
  89. \fB\-\-ignore=\fR<regexp>
  90. Ignore nodes matching <regexp>
  91. .TP
  92. \fB\-\-scale=\fR<n>
  93. Set GV scaling [default=0]
  94. .SH EXAMPLES
  95. pprof /bin/ls ls.prof
  96. .IP
  97. Outputs one line per procedure
  98. .PP
  99. pprof \fB\-\-gv\fR /bin/ls ls.prof
  100. .IP
  101. Displays annotated call-graph via 'gv'
  102. .PP
  103. pprof \fB\-\-gv\fR \fB\-\-focus\fR=\fIMutex\fR /bin/ls ls.prof
  104. .IP
  105. Restricts to code paths including a .*Mutex.* entry
  106. .PP
  107. pprof \fB\-\-gv\fR \fB\-\-focus\fR=\fIMutex\fR \fB\-\-ignore\fR=\fIstring\fR /bin/ls ls.prof
  108. .IP
  109. Code paths including Mutex but not string
  110. .PP
  111. pprof \fB\-\-list\fR=\fIgetdir\fR /bin/ls ls.prof
  112. .IP
  113. Dissassembly (with per-line annotations) for getdir()
  114. .PP
  115. pprof \fB\-\-disasm\fR=\fIgetdir\fR /bin/ls ls.prof
  116. .IP
  117. Dissassembly (with per-PC annotations) for getdir()
  118. .SH COPYRIGHT
  119. Copyright \(co 2005 Google Inc.
  120. .SH "SEE ALSO"
  121. Further documentation for
  122. .B pprof
  123. is maintained as a web page called
  124. .B cpu_profiler.html
  125. and is likely installed at one of the following locations:
  126. .IP
  127. .B /usr/share/gperftools/cpu_profiler.html
  128. .br
  129. .B /usr/local/share/gperftools/cpu_profiler.html
  130. .PP