ABAP Keyword Documentation →  ABAP − Reference →  program editing →  Testing and Checking Programs →  Runtime Measurements → 

SET RUN TIME ANALYZER  Syntax Diagram

Short Reference

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.