Documentation View

We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

ABAPSET_RUN_TIME_ANALYZER - SET RUN TIME ANALYZER

ABAPSET_RUN_TIME_ANALYZER - SET RUN TIME ANALYZER

BAL_S_LOG - Application Log: Log header data   General Data in Customer Master  
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.







CL_GUI_FRONTEND_SERVICES - Frontend Services   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 2726 Date: 20230206 Time: 100659     sap01-206 ( 47 ms )