SET RUN TIME ANALYZER

SET RUN TIME ANALYZER ON/OFF

Variants:
1. SET RUN TIME ANALYZER ON.
2. SET RUN TIME ANALYZER OFF.

Effect

These statements only work if you are executing a program using runtime analysis. If you select the Particular units option, the system only measures the statements that occur between SET RUN TIME ANALYZER ON and SET RUN TIME ANALYZER OFF.

Note

You should remove these statements from your source code when you have finished measuring runtime. This ensures that other users can define their own runtime monitoring criteria as well.

SY-SUBRC = 1:

The runtime analysis is not active, or the performance data file is not open for writing.

Example

  DO 3 TIMES. 
 
	PERFORM NOT_TO_BE_MEASURED. 
 
	SET RUN TIME ANALYZER ON. 
	PERFORM	 TO_BE_MEASURED. 
	SET RUN TIME ANALYZER OFF. 
 
	PERFORM NOT_TO_BE_MEASURED. 
 
  ENDDO. 
 
  FORM NOT_TO_BE_MEASURED. ENDFORM. 
  FORM	 TO_BE_MEASURED. ENDFORM.

Note

You can also start and stop measurement dynamically: