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.

92 lines
4.0 KiB
HTML

<html lang="en">
<head>
<title>Symspecs - 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="up" href="Invoking.html#Invoking" title="Invoking">
<link rel="prev" href="Deprecated-Options.html#Deprecated-Options" title="Deprecated Options">
<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="Symspecs"></a>Previous:&nbsp;<a rel="previous" accesskey="p" href="Deprecated-Options.html#Deprecated-Options">Deprecated Options</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Invoking.html#Invoking">Invoking</a>
<hr><br>
</div>
<h3 class="section">4.5 Symspecs</h3>
<p>Many of the output options allow functions to be included or excluded
using <dfn>symspecs</dfn> (symbol specifications), which observe the
following syntax:
<pre class="example"> filename_containing_a_dot
| funcname_not_containing_a_dot
| linenumber
| ( [ any_filename ] `:' ( any_funcname | linenumber ) )
</pre>
<p>Here are some sample symspecs:
<dl>
<dt><span class="samp">main.c</span><dd>Selects everything in file <span class="file">main.c</span>&mdash;the
dot in the string tells <code>gprof</code> to interpret
the string as a filename, rather than as
a function name. To select a file whose
name does not contain a dot, a trailing colon
should be specified. For example, <span class="samp">odd:</span> is
interpreted as the file named <span class="file">odd</span>.
<br><dt><span class="samp">main</span><dd>Selects all functions named <span class="samp">main</span>.
<p>Note that there may be multiple instances of the same function name
because some of the definitions may be local (i.e., static). Unless a
function name is unique in a program, you must use the colon notation
explained below to specify a function from a specific source file.
<p>Sometimes, function names contain dots. In such cases, it is necessary
to add a leading colon to the name. For example, <span class="samp">:.mul</span> selects
function <span class="samp">.mul</span>.
<p>In some object file formats, symbols have a leading underscore.
<code>gprof</code> will normally not print these underscores. When you name a
symbol in a symspec, you should type it exactly as <code>gprof</code> prints
it in its output. For example, if the compiler produces a symbol
<span class="samp">_main</span> from your <code>main</code> function, <code>gprof</code> still prints
it as <span class="samp">main</span> in its output, so you should use <span class="samp">main</span> in
symspecs.
<br><dt><span class="samp">main.c:main</span><dd>Selects function <span class="samp">main</span> in file <span class="file">main.c</span>.
<br><dt><span class="samp">main.c:134</span><dd>Selects line 134 in file <span class="file">main.c</span>.
</dl>
</body></html>