Incompatibilities.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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-2017 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 5.2, http://www.gnu.org/software/texinfo/ -->
  13. <head>
  14. <title>GNU gprof: Incompatibilities</title>
  15. <meta name="description" content="GNU gprof: Incompatibilities">
  16. <meta name="keywords" content="GNU gprof: Incompatibilities">
  17. <meta name="resource-type" content="document">
  18. <meta name="distribution" content="global">
  19. <meta name="Generator" content="makeinfo">
  20. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  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="index.html#Top" rel="up" title="Top">
  24. <link href="Details.html#Details" rel="next" title="Details">
  25. <link href="How-do-I_003f.html#How-do-I_003f" rel="prev" title="How do I?">
  26. <style type="text/css">
  27. <!--
  28. a.summary-letter {text-decoration: none}
  29. blockquote.smallquotation {font-size: smaller}
  30. div.display {margin-left: 3.2em}
  31. div.example {margin-left: 3.2em}
  32. div.indentedblock {margin-left: 3.2em}
  33. div.lisp {margin-left: 3.2em}
  34. div.smalldisplay {margin-left: 3.2em}
  35. div.smallexample {margin-left: 3.2em}
  36. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  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.nocodebreak {white-space:nowrap}
  48. span.nolinebreak {white-space:nowrap}
  49. span.roman {font-family:serif; font-weight:normal}
  50. span.sansserif {font-family:sans-serif; font-weight:normal}
  51. ul.no-bullet {list-style: none}
  52. -->
  53. </style>
  54. </head>
  55. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  56. <a name="Incompatibilities"></a>
  57. <div class="header">
  58. <p>
  59. Next: <a href="Details.html#Details" accesskey="n" rel="next">Details</a>, Previous: <a href="How-do-I_003f.html#How-do-I_003f" accesskey="p" rel="prev">How do I?</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
  60. </div>
  61. <hr>
  62. <a name="Incompatibilities-with-Unix-gprof"></a>
  63. <h2 class="chapter">8 Incompatibilities with Unix <code>gprof</code></h2>
  64. <p><small>GNU</small> <code>gprof</code> and Berkeley Unix <code>gprof</code> use the same data
  65. file <samp>gmon.out</samp>, and provide essentially the same information. But
  66. there are a few differences.
  67. </p>
  68. <ul>
  69. <li> <small>GNU</small> <code>gprof</code> uses a new, generalized file format with support
  70. for basic-block execution counts and non-realtime histograms. A magic
  71. cookie and version number allows <code>gprof</code> to easily identify
  72. new style files. Old BSD-style files can still be read.
  73. See <a href="File-Format.html#File-Format">Profiling Data File Format</a>.
  74. </li><li> For a recursive function, Unix <code>gprof</code> lists the function as a
  75. parent and as a child, with a <code>calls</code> field that lists the number
  76. of recursive calls. <small>GNU</small> <code>gprof</code> omits these lines and puts
  77. the number of recursive calls in the primary line.
  78. </li><li> When a function is suppressed from the call graph with &lsquo;<samp>-e</samp>&rsquo;, <small>GNU</small>
  79. <code>gprof</code> still lists it as a subroutine of functions that call it.
  80. </li><li> <small>GNU</small> <code>gprof</code> accepts the &lsquo;<samp>-k</samp>&rsquo; with its argument
  81. in the form &lsquo;<samp>from/to</samp>&rsquo;, instead of &lsquo;<samp>from to</samp>&rsquo;.
  82. </li><li> In the annotated source listing,
  83. if there are multiple basic blocks on the same line,
  84. <small>GNU</small> <code>gprof</code> prints all of their counts, separated by commas.
  85. </li><li> The blurbs, field widths, and output formats are different. <small>GNU</small>
  86. <code>gprof</code> prints blurbs after the tables, so that you can see the
  87. tables without skipping the blurbs.
  88. </li></ul>
  89. </body>
  90. </html>