|
|
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.