SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → program editing → Testing and Checking Programs → Runtime Measurements →Syntax
SET RUN TIME ANALYZER {ON|OFF}.
Effect
This statement influences the measurement of a program with the
runtime analysis tool.
If you activate the setting particular units in the runtime analysis, which
can be done via Restrictions → Program units, the runtime analysis
only measures statements that occur between SET RUN TIME ANALYZER ON and SET RUN TIME ANALYZER OFF.
System fields
The statement SET RUN TIME ANALYZER always sets the return value sy-subrc to 0.
Notes
Example
If you execute the method m0 when the runtime analysis is switched on, only the runtime from callup and execution of the method m2 is measured.
METHOD m0.
me->m1( ).
SET RUN TIME ANALYZER ON.
me->m2( ).
SET RUN TIME ANALYZER OFF.
me->m3( ).
ENDMETHOD.