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

Running the -p profiled program

When you execute a profiled program that has been compiled to gather timing statistics, a data file is produced with the default name of mon.out in the directory that is current when the program terminates. Unlike lprof, no message is printed on standard error.

To specify a name other than mon.out or write data files to a directory other than the current directory, the PROFDIR environment variable must be set. If PROFDIR=string, then string/pid.progname is used for the name of the data file, where pid is the process ID of the program and progname is the name of the program with any path prefix removed. As with lprof, if PROFDIR is set but null, no profiling output is produced.


Next topic: Invoking prof
Previous topic: Compiling the program for use with prof

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