您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

203 行
7.3KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "Funding Free Software", the Front-Cover
  8. Texts being (a) (see below), and with the Back-Cover Texts being (b)
  9. (see below). A copy of the license is included in the section entitled
  10. "GNU Free Documentation License".
  11. (a) The FSF's Front-Cover Text is:
  12. A GNU Manual
  13. (b) The FSF's Back-Cover Text is:
  14. You have freedom to copy and modify this GNU Manual, like GNU
  15. software. Copies published by the Free Software Foundation raise
  16. funds for GNU development. -->
  17. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  20. <title>Invoking Gcov-tool (Using the GNU Compiler Collection (GCC))</title>
  21. <meta name="description" content="Invoking Gcov-tool (Using the GNU Compiler Collection (GCC))">
  22. <meta name="keywords" content="Invoking Gcov-tool (Using the GNU Compiler Collection (GCC))">
  23. <meta name="resource-type" content="document">
  24. <meta name="distribution" content="global">
  25. <meta name="Generator" content="makeinfo">
  26. <link href="index.html#Top" rel="start" title="Top">
  27. <link href="Option-Index.html#Option-Index" rel="index" title="Option Index">
  28. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  29. <link href="Gcov_002dtool.html#Gcov_002dtool" rel="up" title="Gcov-tool">
  30. <link href="Gcov_002ddump.html#Gcov_002ddump" rel="next" title="Gcov-dump">
  31. <link href="Gcov_002dtool-Intro.html#Gcov_002dtool-Intro" rel="prev" title="Gcov-tool Intro">
  32. <style type="text/css">
  33. <!--
  34. a.summary-letter {text-decoration: none}
  35. blockquote.indentedblock {margin-right: 0em}
  36. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  37. blockquote.smallquotation {font-size: smaller}
  38. div.display {margin-left: 3.2em}
  39. div.example {margin-left: 3.2em}
  40. div.lisp {margin-left: 3.2em}
  41. div.smalldisplay {margin-left: 3.2em}
  42. div.smallexample {margin-left: 3.2em}
  43. div.smalllisp {margin-left: 3.2em}
  44. kbd {font-style: oblique}
  45. pre.display {font-family: inherit}
  46. pre.format {font-family: inherit}
  47. pre.menu-comment {font-family: serif}
  48. pre.menu-preformatted {font-family: serif}
  49. pre.smalldisplay {font-family: inherit; font-size: smaller}
  50. pre.smallexample {font-size: smaller}
  51. pre.smallformat {font-family: inherit; font-size: smaller}
  52. pre.smalllisp {font-size: smaller}
  53. span.nolinebreak {white-space: nowrap}
  54. span.roman {font-family: initial; font-weight: normal}
  55. span.sansserif {font-family: sans-serif; font-weight: normal}
  56. ul.no-bullet {list-style: none}
  57. -->
  58. </style>
  59. </head>
  60. <body lang="en">
  61. <a name="Invoking-Gcov_002dtool"></a>
  62. <div class="header">
  63. <p>
  64. Previous: <a href="Gcov_002dtool-Intro.html#Gcov_002dtool-Intro" accesskey="p" rel="prev">Gcov-tool Intro</a>, Up: <a href="Gcov_002dtool.html#Gcov_002dtool" accesskey="u" rel="up">Gcov-tool</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  65. </div>
  66. <hr>
  67. <a name="Invoking-gcov_002dtool"></a>
  68. <h3 class="section">11.2 Invoking <code>gcov-tool</code></h3>
  69. <div class="smallexample">
  70. <pre class="smallexample">gcov-tool <span class="roman">[</span><var>global-options</var><span class="roman">]</span> SUB_COMMAND <span class="roman">[</span><var>sub_command-options</var><span class="roman">]</span> <var>profile_dir</var>
  71. </pre></div>
  72. <p><code>gcov-tool</code> accepts the following options:
  73. </p>
  74. <dl compact="compact">
  75. <dt><code>-h</code></dt>
  76. <dt><code>--help</code></dt>
  77. <dd><p>Display help about using <code>gcov-tool</code> (on the standard output), and
  78. exit without doing any further processing.
  79. </p>
  80. </dd>
  81. <dt><code>-v</code></dt>
  82. <dt><code>--version</code></dt>
  83. <dd><p>Display the <code>gcov-tool</code> version number (on the standard output),
  84. and exit without doing any further processing.
  85. </p>
  86. </dd>
  87. <dt><code>merge</code></dt>
  88. <dd><p>Merge two profile directories.
  89. </p><dl compact="compact">
  90. <dt><code>-o <var>directory</var></code></dt>
  91. <dt><code>--output <var>directory</var></code></dt>
  92. <dd><p>Set the output profile directory. Default output directory name is
  93. <var>merged_profile</var>.
  94. </p>
  95. </dd>
  96. <dt><code>-v</code></dt>
  97. <dt><code>--verbose</code></dt>
  98. <dd><p>Set the verbose mode.
  99. </p>
  100. </dd>
  101. <dt><code>-w <var>w1</var>,<var>w2</var></code></dt>
  102. <dt><code>--weight <var>w1</var>,<var>w2</var></code></dt>
  103. <dd><p>Set the merge weights of the <var>directory1</var> and <var>directory2</var>,
  104. respectively. The default weights are 1 for both.
  105. </p></dd>
  106. </dl>
  107. </dd>
  108. <dt><code>rewrite</code></dt>
  109. <dd><p>Read the specified profile directory and rewrite to a new directory.
  110. </p><dl compact="compact">
  111. <dt><code>-n <var>long_long_value</var></code></dt>
  112. <dt><code>--normalize &lt;long_long_value&gt;</code></dt>
  113. <dd><p>Normalize the profile. The specified value is the max counter value
  114. in the new profile.
  115. </p>
  116. </dd>
  117. <dt><code>-o <var>directory</var></code></dt>
  118. <dt><code>--output <var>directory</var></code></dt>
  119. <dd><p>Set the output profile directory. Default output name is <var>rewrite_profile</var>.
  120. </p>
  121. </dd>
  122. <dt><code>-s <var>float_or_simple-frac_value</var></code></dt>
  123. <dt><code>--scale <var>float_or_simple-frac_value</var></code></dt>
  124. <dd><p>Scale the profile counters. The specified value can be in floating point value,
  125. or simple fraction value form, such 1, 2, 2/3, and 5/3.
  126. </p>
  127. </dd>
  128. <dt><code>-v</code></dt>
  129. <dt><code>--verbose</code></dt>
  130. <dd><p>Set the verbose mode.
  131. </p></dd>
  132. </dl>
  133. </dd>
  134. <dt><code>overlap</code></dt>
  135. <dd><p>Compute the overlap score between the two specified profile directories.
  136. The overlap score is computed based on the arc profiles. It is defined as
  137. the sum of min (p1_counter[i] / p1_sum_all, p2_counter[i] / p2_sum_all),
  138. for all arc counter i, where p1_counter[i] and p2_counter[i] are two
  139. matched counters and p1_sum_all and p2_sum_all are the sum of counter
  140. values in profile 1 and profile 2, respectively.
  141. </p>
  142. <dl compact="compact">
  143. <dt><code>-f</code></dt>
  144. <dt><code>--function</code></dt>
  145. <dd><p>Print function level overlap score.
  146. </p>
  147. </dd>
  148. <dt><code>-F</code></dt>
  149. <dt><code>--fullname</code></dt>
  150. <dd><p>Print full gcda filename.
  151. </p>
  152. </dd>
  153. <dt><code>-h</code></dt>
  154. <dt><code>--hotonly</code></dt>
  155. <dd><p>Only print info for hot objects/functions.
  156. </p>
  157. </dd>
  158. <dt><code>-o</code></dt>
  159. <dt><code>--object</code></dt>
  160. <dd><p>Print object level overlap score.
  161. </p>
  162. </dd>
  163. <dt><code>-t <var>float</var></code></dt>
  164. <dt><code>--hot_threshold &lt;float&gt;</code></dt>
  165. <dd><p>Set the threshold for hot counter value.
  166. </p>
  167. </dd>
  168. <dt><code>-v</code></dt>
  169. <dt><code>--verbose</code></dt>
  170. <dd><p>Set the verbose mode.
  171. </p></dd>
  172. </dl>
  173. </dd>
  174. </dl>
  175. <hr>
  176. <div class="header">
  177. <p>
  178. Previous: <a href="Gcov_002dtool-Intro.html#Gcov_002dtool-Intro" accesskey="p" rel="prev">Gcov-tool Intro</a>, Up: <a href="Gcov_002dtool.html#Gcov_002dtool" accesskey="u" rel="up">Gcov-tool</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  179. </div>
  180. </body>
  181. </html>