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 5Copyright (C) 1988-2021 Free Software Foundation, Inc. 6 7Permission is granted to copy, distribute and/or modify this document 8under the terms of the GNU Free Documentation License, Version 1.3 9or any later version published by the Free Software Foundation; 10with no Invariant Sections, with no Front-Cover Texts, and with no 11Back-Cover Texts. A copy of the license is included in the 12section entitled "GNU Free Documentation License". 13 --> 14<!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ --> 15<head> 16<title>GNU gprof: Miscellaneous Options</title> 17 18<meta name="description" content="GNU gprof: Miscellaneous Options"> 19<meta name="keywords" content="GNU gprof: Miscellaneous Options"> 20<meta name="resource-type" content="document"> 21<meta name="distribution" content="global"> 22<meta name="Generator" content="makeinfo"> 23<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 24<link href="index.html#Top" rel="start" title="Top"> 25<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents"> 26<link href="Invoking.html#Invoking" rel="up" title="Invoking"> 27<link href="Deprecated-Options.html#Deprecated-Options" rel="next" title="Deprecated Options"> 28<link href="Analysis-Options.html#Analysis-Options" rel="previous" title="Analysis Options"> 29<style type="text/css"> 30<!-- 31a.summary-letter {text-decoration: none} 32blockquote.smallquotation {font-size: smaller} 33div.display {margin-left: 3.2em} 34div.example {margin-left: 3.2em} 35div.indentedblock {margin-left: 3.2em} 36div.lisp {margin-left: 3.2em} 37div.smalldisplay {margin-left: 3.2em} 38div.smallexample {margin-left: 3.2em} 39div.smallindentedblock {margin-left: 3.2em; font-size: smaller} 40div.smalllisp {margin-left: 3.2em} 41kbd {font-style:oblique} 42pre.display {font-family: inherit} 43pre.format {font-family: inherit} 44pre.menu-comment {font-family: serif} 45pre.menu-preformatted {font-family: serif} 46pre.smalldisplay {font-family: inherit; font-size: smaller} 47pre.smallexample {font-size: smaller} 48pre.smallformat {font-family: inherit; font-size: smaller} 49pre.smalllisp {font-size: smaller} 50span.nocodebreak {white-space:nowrap} 51span.nolinebreak {white-space:nowrap} 52span.roman {font-family:serif; font-weight:normal} 53span.sansserif {font-family:sans-serif; font-weight:normal} 54ul.no-bullet {list-style: none} 55--> 56</style> 57 58 59</head> 60 61<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> 62<a name="Miscellaneous-Options"></a> 63<div class="header"> 64<p> 65Next: <a href="Deprecated-Options.html#Deprecated-Options" accesskey="n" rel="next">Deprecated Options</a>, Previous: <a href="Analysis-Options.html#Analysis-Options" accesskey="p" rel="previous">Analysis Options</a>, Up: <a href="Invoking.html#Invoking" accesskey="u" rel="up">Invoking</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p> 66</div> 67<hr> 68<a name="Miscellaneous-Options-1"></a> 69<h3 class="section">4.3 Miscellaneous Options</h3> 70 71<dl compact="compact"> 72<dt><code>-d[<var>num</var>]</code></dt> 73<dt><code>--debug[=<var>num</var>]</code></dt> 74<dd><p>The ‘<samp>-d <var>num</var></samp>’ option specifies debugging options. 75If <var>num</var> is not specified, enable all debugging. 76See <a href="Debugging.html#Debugging">Debugging <code>gprof</code></a>. 77</p> 78</dd> 79<dt><code>-h</code></dt> 80<dt><code>--help</code></dt> 81<dd><p>The ‘<samp>-h</samp>’ option prints command line usage. 82</p> 83</dd> 84<dt><code>-O<var>name</var></code></dt> 85<dt><code>--file-format=<var>name</var></code></dt> 86<dd><p>Selects the format of the profile data files. Recognized formats are 87‘<samp>auto</samp>’ (the default), ‘<samp>bsd</samp>’, ‘<samp>4.4bsd</samp>’, ‘<samp>magic</samp>’, and 88‘<samp>prof</samp>’ (not yet supported). 89</p> 90</dd> 91<dt><code>-s</code></dt> 92<dt><code>--sum</code></dt> 93<dd><p>The ‘<samp>-s</samp>’ option causes <code>gprof</code> to summarize the information 94in the profile data files it read in, and write out a profile data 95file called <samp>gmon.sum</samp>, which contains all the information from 96the profile data files that <code>gprof</code> read in. The file <samp>gmon.sum</samp> 97may be one of the specified input files; the effect of this is to 98merge the data in the other input files into <samp>gmon.sum</samp>. 99</p> 100<p>Eventually you can run <code>gprof</code> again without ‘<samp>-s</samp>’ to analyze the 101cumulative data in the file <samp>gmon.sum</samp>. 102</p> 103</dd> 104<dt><code>-v</code></dt> 105<dt><code>--version</code></dt> 106<dd><p>The ‘<samp>-v</samp>’ flag causes <code>gprof</code> to print the current version 107number, and then exit. 108</p> 109</dd> 110</dl> 111 112 113 114 115</body> 116</html> 117