gprof: Invoking

1 
1 4 'gprof' Command Summary
1 *************************
1 
1 After you have a profile data file 'gmon.out', you can run 'gprof' to
1 interpret the information in it.  The 'gprof' program prints a flat
1 profile and a call graph on standard output.  Typically you would
1 redirect the output of 'gprof' into a file with '>'.
1 
1    You run 'gprof' like this:
1 
1      gprof OPTIONS [EXECUTABLE-FILE [PROFILE-DATA-FILES...]] [> OUTFILE]
1 
1 Here square-brackets indicate optional arguments.
1 
1    If you omit the executable file name, the file 'a.out' is used.  If
1 you give no profile data file name, the file 'gmon.out' is used.  If any
1 file is not in the proper format, or if the profile data file does not
1 appear to belong to the executable file, an error message is printed.
1 
1    You can give more than one profile data file by entering all their
1 names after the executable file name; then the statistics in all the
1 data files are summed together.
1 
1    The order of these options does not matter.
1 

Menu