SAP Program MPERF001 - Runtime analysis

Description
This program determines the runtime with 'GET_RUN_TIME' and generates alist for analysis.
The include IPERFMAK contains macros to do this.
Times are set using macro calls of the form 'SET_RUN_TIME text x.'. Youenter these in the main program to be traced.
With 'text', you can specify a place for a time marker.
With x = 'S' (start) or x = 'E' (end), you can set a time marker at thestart and end of a particular section of code.
In the analysis, the delta is calculated for this.
The delta of similar time markers is summed in the analysis.
The end time for calculating the percentage values in the analysis isset using the macro 'SET_END_TIME'.
With several end times, the percentage values are calculated for thedefined ranges.
The end times determine a block formation in display.
The list for analysis is generated with 'SHOW_RUN_TIME_TAB.' You canprint this list.
The column "Meaning" contains the modus pool and the text placed aboveSET_RUN_TIME. "Z" states whether a start point ("S") is concerned or anend point ("F").
"Point in time" is the value calculated using GET RUN TIME.
"Delta" contains the difference from the previous point in time.
In "Sum SE" the same "delta SE" values are summed up.
"Delta SE (%)" contains the corresponding percentage value of "deltaSE"
"Sum SE (%)" contains the corresponding percentage value of "sum SE".

Precondition
The main program must contain the macros. The user parameter "CY0"(runtime analysis) is equal to "1". No runtime analysis occurs and nolists are printed for all other values.
Output
List with performance analysis.

Example
INCLUDE IPERFMAK.
SET_RUN_TIME 'DO' 'S'. "Set time, start
DO 100000 TIMES.
ENDDO.
SET_RUN_TIME 'DO' 'E'. "Set time, end
SET_END_TIME. "Set end time
SHOW_RUN_TIME_TAB. "Output list