GNU Info

Info Node: (gprof.info)Invoking

(gprof.info)Invoking


Next: Output Prev: Executing Up: Top
Enter node , (file) or (file)node

`gprof' Command Summary
***********************

   After you have a profile data file `gmon.out', you can run `gprof'
to interpret the information in it.  The `gprof' program prints a flat
profile and a call graph on standard output.  Typically you would
redirect the output of `gprof' into a file with `>'.

   You run `gprof' like this:

     gprof OPTIONS [EXECUTABLE-FILE [PROFILE-DATA-FILES...]] [> OUTFILE]

Here square-brackets indicate optional arguments.

   If you omit the executable file name, the file `a.out' is used.  If
you give no profile data file name, the file `gmon.out' is used.  If
any file is not in the proper format, or if the profile data file does
not appear to belong to the executable file, an error message is
printed.

   You can give more than one profile data file by entering all their
names after the executable file name; then the statistics in all the
data files are summed together.

   The order of these options does not matter.

Output Options
Controlling `gprof''s output style
Analysis Options
Controlling how `gprof' analyses its data
Miscellaneous Options
Deprecated Options
Options you no longer need to use, but which
have been retained for compatibility
Symspecs
Specifying functions to include or exclude

automatically generated by info2www version 1.2.2.9