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

Source listing for a subset of files

Source listing for a subset of files

If you want profiling output for a limited number of selected files, use the -r option:

   $ lprof -r file1.c -r file2.c
This command line will produce output only for file1.c and file2.c. This is useful if you want to examine a few files rather than an entire program.