When you run Profiler, the following banner is displayed:
* Micro Focus COBOL Profiler Vv.r * name-1 . . . * name-n
where name is one of the files listed in filenames in the command line.
For example, if you submit to the Cob utility the program prog1 with the PROFILE directive set, run the program, and then enter:
cobprof prog1 +LIST
the following output is produced on the console:
* Micro Focus COBOL Profiler Vv.r * prog1 Total time: 172 milliseconds. Module called once. %time time entries ms/entry paragraph ----------------------------------------------------------------- 64.53 111 21 5 TEST-ROUTINE 17.44 30 1 30 PARA1 16.28 28 15 2 NAME-ENTRY 1.74 3 1 3 END-SECTION 0.00 0 1 0 INITIAL(UNNAMED) PARAGRAPH
The Profiler output gives the total execution time (in milliseconds) for the program run and then breaks this down for each section and paragraph in the program:
Output | Description |
---|---|
%time | Total percentage of execution time spent in the named section or paragraph |
time | Total time (in milliseconds) spent in the named section or paragraph |
entries | Number of times the named section or paragraph was entered |
ms/entry | Average time (in milliseconds) per entry to the section or paragraph |
paragraph | Section or paragraph to which performance statistics apply. The initial (unnamed) paragraph listed is the initialization code executed before the user part of the program is entered. |
The product of the ms/entry and the number of entries should equal the total time spent in the section or paragraph; however, because all three values are truncated, there can be a slight discrepancy.