Display a program's profile data on a line-by-line basis.
Data includes a list of source files, each source code line
(with line numbers), and the number of times each line was executed.
By default, lprof interprets the profile file
This file is generated by specifying cc -ql
when compiling a program or when creating a shared object
prog (default is a.out).
The PROFOPTS environment variable can be used to control
profiling at run time.
See also prof and gprof.
Read input profile
file instead of
Store merged profile data in file
out. Must be used with -m.
Search for include files in
dir as well as in the default place
Merge several profile
files and total the execution counts.
files are of the form
f3.cnt , etc., where each file contains the profile data from
a different run of the same program. Used with -d.
Look in the profile file for a program named
instead of the name used when the profile file was created.
-o is needed when files have been renamed or moved.
Print the default listing; useful with -r and -s.
Used with -p to print only the source files given in
For each function, print the percentage of code lines that are executed.
Ignore timestamp of executable files being profiled. Normally, times are checked to insure that the various profiles were made from the same version of an executable.
Print the version of lprof on standard error.
Omit execution counts. For lines that executed,
show only the line numbers; for lines that didn't execute,
print the line number, the symbol [
U], and the source line.