|
|
You can obtain a summary report of the profile data by using the -s option:
$ lprof -s -c sample.cntBecause 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.outThis table gives the percentage of lines in each function that are actually executed during the program run.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