Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

132 lines
6.0KB

  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>Deprecated Options (GNU gprof)</title>
  16. <meta name="description" content="Deprecated Options (GNU gprof)">
  17. <meta name="keywords" content="Deprecated Options (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="Invoking.html#Invoking" rel="up" title="Invoking">
  24. <link href="Symspecs.html#Symspecs" rel="next" title="Symspecs">
  25. <link href="Miscellaneous-Options.html#Miscellaneous-Options" rel="prev" title="Miscellaneous Options">
  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="Deprecated-Options"></a>
  56. <div class="header">
  57. <p>
  58. Next: <a href="Symspecs.html#Symspecs" accesskey="n" rel="next">Symspecs</a>, Previous: <a href="Miscellaneous-Options.html#Miscellaneous-Options" accesskey="p" rel="prev">Miscellaneous Options</a>, Up: <a href="Invoking.html#Invoking" accesskey="u" rel="up">Invoking</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
  59. </div>
  60. <hr>
  61. <a name="Deprecated-Options-1"></a>
  62. <h3 class="section">4.4 Deprecated Options</h3>
  63. <p>These options have been replaced with newer versions that use symspecs.
  64. </p>
  65. <dl compact="compact">
  66. <dt><code>-e <var>function_name</var></code></dt>
  67. <dd><p>The &lsquo;<samp>-e <var>function</var></samp>&rsquo; option tells <code>gprof</code> to not print
  68. information about the function <var>function_name</var> (and its
  69. children&hellip;) in the call graph. The function will still be listed
  70. as a child of any functions that call it, but its index number will be
  71. shown as &lsquo;<samp>[not printed]</samp>&rsquo;. More than one &lsquo;<samp>-e</samp>&rsquo; option may be
  72. given; only one <var>function_name</var> may be indicated with each &lsquo;<samp>-e</samp>&rsquo;
  73. option.
  74. </p>
  75. </dd>
  76. <dt><code>-E <var>function_name</var></code></dt>
  77. <dd><p>The <code>-E <var>function</var></code> option works like the <code>-e</code> option, but
  78. time spent in the function (and children who were not called from
  79. anywhere else), will not be used to compute the percentages-of-time for
  80. the call graph. More than one &lsquo;<samp>-E</samp>&rsquo; option may be given; only one
  81. <var>function_name</var> may be indicated with each &lsquo;<samp>-E</samp>&rsquo; option.
  82. </p>
  83. </dd>
  84. <dt><code>-f <var>function_name</var></code></dt>
  85. <dd><p>The &lsquo;<samp>-f <var>function</var></samp>&rsquo; option causes <code>gprof</code> to limit the
  86. call graph to the function <var>function_name</var> and its children (and
  87. their children&hellip;). More than one &lsquo;<samp>-f</samp>&rsquo; option may be given;
  88. only one <var>function_name</var> may be indicated with each &lsquo;<samp>-f</samp>&rsquo;
  89. option.
  90. </p>
  91. </dd>
  92. <dt><code>-F <var>function_name</var></code></dt>
  93. <dd><p>The &lsquo;<samp>-F <var>function</var></samp>&rsquo; option works like the <code>-f</code> option, but
  94. only time spent in the function and its children (and their
  95. children&hellip;) will be used to determine total-time and
  96. percentages-of-time for the call graph. More than one &lsquo;<samp>-F</samp>&rsquo; option
  97. may be given; only one <var>function_name</var> may be indicated with each
  98. &lsquo;<samp>-F</samp>&rsquo; option. The &lsquo;<samp>-F</samp>&rsquo; option overrides the &lsquo;<samp>-E</samp>&rsquo; option.
  99. </p>
  100. </dd>
  101. </dl>
  102. <p>Note that only one function can be specified with each <code>-e</code>,
  103. <code>-E</code>, <code>-f</code> or <code>-F</code> option. To specify more than one
  104. function, use multiple options. For example, this command:
  105. </p>
  106. <div class="example">
  107. <pre class="example">gprof -e boring -f foo -f bar myprogram &gt; gprof.output
  108. </pre></div>
  109. <p>lists in the call graph all functions that were reached from either
  110. <code>foo</code> or <code>bar</code> and were not reachable from <code>boring</code>.
  111. </p>
  112. <hr>
  113. <div class="header">
  114. <p>
  115. Next: <a href="Symspecs.html#Symspecs" accesskey="n" rel="next">Symspecs</a>, Previous: <a href="Miscellaneous-Options.html#Miscellaneous-Options" accesskey="p" rel="prev">Miscellaneous Options</a>, Up: <a href="Invoking.html#Invoking" accesskey="u" rel="up">Invoking</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
  116. </div>
  117. </body>
  118. </html>