neingeist
/
arduinisten
Archived
1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

80 lines
3.6 KiB
HTML

<html lang="en">
<head>
<title>Incompatibilities - GNU gprof</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="GNU gprof">
<meta name="generator" content="makeinfo 4.7">
<link title="Top" rel="start" href="index.html#Top">
<link rel="prev" href="How-do-I_003f.html#How-do-I_003f" title="How do I?">
<link rel="next" href="Details.html#Details" title="Details">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
This file documents the gprof profiler of the GNU system.
Copyright (C) 1988, 92, 97, 98, 99, 2000, 2001, 2003, 2007 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1
or any later version published by the Free Software Foundation;
with no Invariant Sections, with no Front-Cover Texts, and with no
Back-Cover Texts. A copy of the license is included in the
section entitled ``GNU Free Documentation License''.
man end-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family: serif; font-weight: normal; }
--></style>
</head>
<body>
<div class="node">
<p>
<a name="Incompatibilities"></a>Next:&nbsp;<a rel="next" accesskey="n" href="Details.html#Details">Details</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="How-do-I_003f.html#How-do-I_003f">How do I?</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="index.html#Top">Top</a>
<hr><br>
</div>
<h2 class="chapter">8 Incompatibilities with Unix <code>gprof</code></h2>
<p><span class="sc">gnu</span> <code>gprof</code> and Berkeley Unix <code>gprof</code> use the same data
file <span class="file">gmon.out</span>, and provide essentially the same information. But
there are a few differences.
<ul>
<li><span class="sc">gnu</span> <code>gprof</code> uses a new, generalized file format with support
for basic-block execution counts and non-realtime histograms. A magic
cookie and version number allows <code>gprof</code> to easily identify
new style files. Old BSD-style files can still be read.
See <a href="File-Format.html#File-Format">Profiling Data File Format</a>.
<li>For a recursive function, Unix <code>gprof</code> lists the function as a
parent and as a child, with a <code>calls</code> field that lists the number
of recursive calls. <span class="sc">gnu</span> <code>gprof</code> omits these lines and puts
the number of recursive calls in the primary line.
<li>When a function is suppressed from the call graph with <span class="samp">-e</span>, <span class="sc">gnu</span>
<code>gprof</code> still lists it as a subroutine of functions that call it.
<li><span class="sc">gnu</span> <code>gprof</code> accepts the <span class="samp">-k</span> with its argument
in the form <span class="samp">from/to</span>, instead of <span class="samp">from to</span>.
<li>In the annotated source listing,
if there are multiple basic blocks on the same line,
<span class="sc">gnu</span> <code>gprof</code> prints all of their counts, separated by commas.
<li>The blurbs, field widths, and output formats are different. <span class="sc">gnu</span>
<code>gprof</code> prints blurbs after the tables, so that you can see the
tables without skipping the blurbs.
</ul>
</body></html>