|
|
By default, lprof expects the profiled program to be called a.out, and the data file, a.out.cnt.
To run lprof on a program with a name other than a.out, specify the name after the -o option. For example:
$ lprof -o samplelprof will assume that the data file is called sample.cnt.
You can specify a data file other than sample.cnt by using the -c option. For example:
$ lprof -c newdata.cnt