Ansicht
Dokumentation

ABAPSET_RUN_TIME_ANALYZER - SET RUN TIME ANALYZER

ABAPSET_RUN_TIME_ANALYZER - SET RUN TIME ANALYZER

Vendor Master (General Section)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

SET RUN TIME ANALYZER

Short Reference



SET RUN TIME ANALYZER ${ON$|OFF$}.

Effect

This statement affects the measurement of a program with the runtime analysis tool. If the setting Particular Units is activated in the runtime analysis, which can be done using Restrictions → Program Units, the runtime analysis only measures the runtime of 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 code sy-subrc to 0.

Notes

  • This statement should only be used in the test phase of a program to enable a later runtime measurement independently of the source code.
  • Runtime analysis can be switched on and off in transaction SAT by selecting System → Utilities → Runtime Analysis or by entering /RON and /ROFF in the command field of the system toolbar
  • Runtime analysis can be stopped and started on a program-driven basis by calling the static methods ON and OFF in CL_ABAP_TRACE_SWITCH either before or after the statements SET RUN TIME ANALYZER.

Example

If the method m0 is executed when runtime analysis is switched on, only the runtime from the call 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.







BAL Application Log Documentation   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 2726 Date: 20240425 Time: 012826     sap01-206 ( 42 ms )