DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Analyzing run-time behavior

Invoking prof

prof correlates the data file with the profiled program to produce its report. By default, prof expects the profiled program to be called a.out and the data file mon.out. If the default names are used, and both the profiled program and the data file are in your current directory, you invoke prof without arguments:

$ prof

To invoke prof for a program with a name other than a.out, you simply specify its name on the command line:

$ prof travel

prof will assume the data file is called mon.out.

If the data file has a name other than mon.out the -m option should be used to indicate the data file name. If the program and data file are in a different directory, you specify their paths relative to the current directory as follows:

   $ prof -m dir/datafile  dir/progname

Next topic: profiling C++ programs with prof
Previous topic: Running the -p profiled program

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004