Programming Tools Guide
Chapter 9, C programmer's productivity tools

Specifying program and data files to lprof

Specifying program and data files to lprof

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 sample
lprof 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