SET RUN TIME ANALYZER ON/OFF
Variants
1. SET RUN TIME ANALYZER ON.
2. SET RUN TIME ANALYZER OFF.
Variant 1
SET RUN TIME ANALYZER ON.
Addition
... MODE mode
Effect
Switches on runtime analysis.
The return code value is set as follows:
-
SY-SUBRC = 0
Runtime analysis was switched on.
SY-SUBRC <> 0
Runtime analysis was not switched on because the
performance data file was not open.
Addition
... MODE mode
Effect
Writes certain records to the performance data file and
assigns the associated performance data to the superior entry. This
ensures that the performance data file does not become too big through
entries that cannot be used individually.
The processing mode mode controls write behavior when an
object is measured. You can assign a whole value to the processing mode
mode . MODE 0 is optional. MODE 0 has the following
meaning:
-
MODE 0 <-> Standard setting
All records are written to the performance data file.
Certain flags are set depending on the binary format of mode
whose value is other than zero. If any of the following bits are of the
binary value are set, the procedure is different:
-
1st bit <-> With internal tables is switched off.
The records für APPEND , COLLECT and SORT are
omitted.
-
2nd bit <-> With technical DB information is switched
off.
Database operations (OPEN, FETCH, CLOSE, LOAD, GET, MODIFY) and buffer
operations (PREPARE, OPEN, FETCH, CLOSE, INSERT, UPDATE, DELETE,
COMMIT, ROLLBACK) are not written to the performance data file.
-
3rd bit <-> With subroutines is switched off.
The records for PERFORM are omitted.
Examples
a) SET RUN TIME ANALYZER ON MODE 3.
b) SET RUN TIME ANALYZER ON MODE 11.
a) and b) have the same effect because the 1st and 2nd bits are set in
both cases (see the explanantions above).
Variant 2
SET RUN TIME ANALYZER OFF.
Effect
1. Closes the performance data file.
2. Switches off runtime analysis.
Example
-
DO 2 TIMES.
IF SY-UNAME = 'SMITH'.
CALL FUNCTION 'S_ABAP_TRACE_OPEN_FILE'.
SET RUN TIME ANALYZER ON.
ENDIF.
* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
* The modularization unit to be measured is called
* here.
* <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
IF SY-UNAME = 'SMITH'.
SET RUN TIME ANALYZER OFF.
ENDIF.
ENDDO.
Index
© SAP AG 1996