Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

125 lines
4.7KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- This file documents the gprof profiler of the GNU system.
  4. Copyright (C) 1988-2020 Free Software Foundation, Inc.
  5. Permission is granted to copy, distribute and/or modify this document
  6. under the terms of the GNU Free Documentation License, Version 1.3
  7. or any later version published by the Free Software Foundation;
  8. with no Invariant Sections, with no Front-Cover Texts, and with no
  9. Back-Cover Texts. A copy of the license is included in the
  10. section entitled "GNU Free Documentation License".
  11. -->
  12. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  13. <head>
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  15. <title>Debugging (GNU gprof)</title>
  16. <meta name="description" content="Debugging (GNU gprof)">
  17. <meta name="keywords" content="Debugging (GNU gprof)">
  18. <meta name="resource-type" content="document">
  19. <meta name="distribution" content="global">
  20. <meta name="Generator" content="makeinfo">
  21. <link href="index.html#Top" rel="start" title="Top">
  22. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  23. <link href="Details.html#Details" rel="up" title="Details">
  24. <link href="GNU-Free-Documentation-License.html#GNU-Free-Documentation-License" rel="next" title="GNU Free Documentation License">
  25. <link href="Internals.html#Internals" rel="prev" title="Internals">
  26. <style type="text/css">
  27. <!--
  28. a.summary-letter {text-decoration: none}
  29. blockquote.indentedblock {margin-right: 0em}
  30. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  31. blockquote.smallquotation {font-size: smaller}
  32. div.display {margin-left: 3.2em}
  33. div.example {margin-left: 3.2em}
  34. div.lisp {margin-left: 3.2em}
  35. div.smalldisplay {margin-left: 3.2em}
  36. div.smallexample {margin-left: 3.2em}
  37. div.smalllisp {margin-left: 3.2em}
  38. kbd {font-style: oblique}
  39. pre.display {font-family: inherit}
  40. pre.format {font-family: inherit}
  41. pre.menu-comment {font-family: serif}
  42. pre.menu-preformatted {font-family: serif}
  43. pre.smalldisplay {font-family: inherit; font-size: smaller}
  44. pre.smallexample {font-size: smaller}
  45. pre.smallformat {font-family: inherit; font-size: smaller}
  46. pre.smalllisp {font-size: smaller}
  47. span.nolinebreak {white-space: nowrap}
  48. span.roman {font-family: initial; font-weight: normal}
  49. span.sansserif {font-family: sans-serif; font-weight: normal}
  50. ul.no-bullet {list-style: none}
  51. -->
  52. </style>
  53. </head>
  54. <body lang="en">
  55. <a name="Debugging"></a>
  56. <div class="header">
  57. <p>
  58. Previous: <a href="Internals.html#Internals" accesskey="p" rel="prev">Internals</a>, Up: <a href="Details.html#Details" accesskey="u" rel="up">Details</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
  59. </div>
  60. <hr>
  61. <a name="Debugging-gprof"></a>
  62. <h3 class="section">9.4 Debugging <code>gprof</code></h3>
  63. <p>If <code>gprof</code> was compiled with debugging enabled,
  64. the &lsquo;<samp>-d</samp>&rsquo; option triggers debugging output
  65. (to stdout) which can be helpful in understanding its operation.
  66. The debugging number specified is interpreted as a sum of the following
  67. options:
  68. </p>
  69. <dl compact="compact">
  70. <dt>2 - Topological sort</dt>
  71. <dd><p>Monitor depth-first numbering of symbols during call graph analysis
  72. </p></dd>
  73. <dt>4 - Cycles</dt>
  74. <dd><p>Shows symbols as they are identified as cycle heads
  75. </p></dd>
  76. <dt>16 - Tallying</dt>
  77. <dd><p>As the call graph arcs are read, show each arc and how
  78. the total calls to each function are tallied
  79. </p></dd>
  80. <dt>32 - Call graph arc sorting</dt>
  81. <dd><p>Details sorting individual parents/children within each call graph entry
  82. </p></dd>
  83. <dt>64 - Reading histogram and call graph records</dt>
  84. <dd><p>Shows address ranges of histograms as they are read, and each
  85. call graph arc
  86. </p></dd>
  87. <dt>128 - Symbol table</dt>
  88. <dd><p>Reading, classifying, and sorting the symbol table from the object file.
  89. For line-by-line profiling (&lsquo;<samp>-l</samp>&rsquo; option), also shows line numbers
  90. being assigned to memory addresses.
  91. </p></dd>
  92. <dt>256 - Static call graph</dt>
  93. <dd><p>Trace operation of &lsquo;<samp>-c</samp>&rsquo; option
  94. </p></dd>
  95. <dt>512 - Symbol table and arc table lookups</dt>
  96. <dd><p>Detail operation of lookup routines
  97. </p></dd>
  98. <dt>1024 - Call graph propagation</dt>
  99. <dd><p>Shows how function times are propagated along the call graph
  100. </p></dd>
  101. <dt>2048 - Basic-blocks</dt>
  102. <dd><p>Shows basic-block records as they are read from profile data
  103. (only meaningful with &lsquo;<samp>-l</samp>&rsquo; option)
  104. </p></dd>
  105. <dt>4096 - Symspecs</dt>
  106. <dd><p>Shows symspec-to-symbol pattern matching operation
  107. </p></dd>
  108. <dt>8192 - Annotate source</dt>
  109. <dd><p>Tracks operation of &lsquo;<samp>-A</samp>&rsquo; option
  110. </p></dd>
  111. </dl>
  112. </body>
  113. </html>