SET RUN TIME ANALYZER

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 RUNTIME ANALYZER ON and SET RUNTIME ANALYZER OFF.

System fields

The statement SET RUNTIME 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.