DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
C programmer's productivity tools

Summary option

You can obtain a summary report of the profile data by using the -s option:

   $ lprof -s -c sample.cnt
Because a source listing is not produced with lprof -s, the -r and -I options do not need to be specified: lprof needs only to find the data file. The following example shows output produced with the -s option:
   Coverage Data Source: a.out.cnt
   Date of Coverage Data Source: Wed Sep 18 16:42:19 1991
   Object: ./a.out
   

percent lines total function covered covered lines name

100.0 4 4 main 66.7 6 9 sub1 0.0 0 2 sub2 100.0 2 2 sub3

70.6 12 17 TOTAL

This table gives the percentage of lines in each function that are actually executed during the program run.
Next topic: Merging option
Previous topic: Source listing for a subset of files

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003