• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-armeabi-2013.11/share/doc/arm-arm-none-eabi/html/gprof.html/
1<html lang="en">
2<head>
3<title>Incompatibilities - GNU gprof</title>
4<meta http-equiv="Content-Type" content="text/html">
5<meta name="description" content="GNU gprof">
6<meta name="generator" content="makeinfo 4.13">
7<link title="Top" rel="start" href="index.html#Top">
8<link rel="prev" href="How-do-I_003f.html#How-do-I_003f" title="How do I?">
9<link rel="next" href="Details.html#Details" title="Details">
10<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
11<!--
12This file documents the gprof profiler of the GNU system.
13
14Copyright (C) 1988, 1992, 1997, 1998, 1999, 2000, 2001, 2003,
152007, 2008, 2009 Free Software Foundation, Inc.
16
17Permission is granted to copy, distribute and/or modify this document
18under the terms of the GNU Free Documentation License, Version 1.3
19or any later version published by the Free Software Foundation;
20with no Invariant Sections, with no Front-Cover Texts, and with no
21Back-Cover Texts.  A copy of the license is included in the
22section entitled ``GNU Free Documentation License''.
23
24-->
25<meta http-equiv="Content-Style-Type" content="text/css">
26<style type="text/css"><!--
27  pre.display { font-family:inherit }
28  pre.format  { font-family:inherit }
29  pre.smalldisplay { font-family:inherit; font-size:smaller }
30  pre.smallformat  { font-family:inherit; font-size:smaller }
31  pre.smallexample { font-size:smaller }
32  pre.smalllisp    { font-size:smaller }
33  span.sc    { font-variant:small-caps }
34  span.roman { font-family:serif; font-weight:normal; } 
35  span.sansserif { font-family:sans-serif; font-weight:normal; } 
36--></style>
37<link rel="stylesheet" type="text/css" href="../cs.css">
38</head>
39<body>
40<div class="node">
41<a name="Incompatibilities"></a>
42<p>
43Next:&nbsp;<a rel="next" accesskey="n" href="Details.html#Details">Details</a>,
44Previous:&nbsp;<a rel="previous" accesskey="p" href="How-do-I_003f.html#How-do-I_003f">How do I?</a>,
45Up:&nbsp;<a rel="up" accesskey="u" href="index.html#Top">Top</a>
46<hr>
47</div>
48
49<h2 class="chapter">8 Incompatibilities with Unix <code>gprof</code></h2>
50
51<p><span class="sc">gnu</span> <code>gprof</code> and Berkeley Unix <code>gprof</code> use the same data
52file <samp><span class="file">gmon.out</span></samp>, and provide essentially the same information.  But
53there are a few differences.
54
55     <ul>
56<li><span class="sc">gnu</span> <code>gprof</code> uses a new, generalized file format with support
57for basic-block execution counts and non-realtime histograms.  A magic
58cookie and version number allows <code>gprof</code> to easily identify
59new style files.  Old BSD-style files can still be read. 
60See <a href="File-Format.html#File-Format">Profiling Data File Format</a>.
61
62     <li>For a recursive function, Unix <code>gprof</code> lists the function as a
63parent and as a child, with a <code>calls</code> field that lists the number
64of recursive calls.  <span class="sc">gnu</span> <code>gprof</code> omits these lines and puts
65the number of recursive calls in the primary line.
66
67     <li>When a function is suppressed from the call graph with &lsquo;<samp><span class="samp">-e</span></samp>&rsquo;, <span class="sc">gnu</span>
68<code>gprof</code> still lists it as a subroutine of functions that call it.
69
70     <li><span class="sc">gnu</span> <code>gprof</code> accepts the &lsquo;<samp><span class="samp">-k</span></samp>&rsquo; with its argument
71in the form &lsquo;<samp><span class="samp">from/to</span></samp>&rsquo;, instead of &lsquo;<samp><span class="samp">from to</span></samp>&rsquo;.
72
73     <li>In the annotated source listing,
74if there are multiple basic blocks on the same line,
75<span class="sc">gnu</span> <code>gprof</code> prints all of their counts, separated by commas.
76
77     <li>The blurbs, field widths, and output formats are different.  <span class="sc">gnu</span>
78<code>gprof</code> prints blurbs after the tables, so that you can see the
79tables without skipping the blurbs. 
80</ul>
81
82   </body></html>
83
84