SET FREQUENCY command

Controls whether statement executions are counted. The initial setting is OFF.

Read syntax diagramSkip visual syntax diagramSETFREQUENCYONOFFcu_spec(,cu_spec);
ON
Specifies that statement executions are counted.
OFF
Specifies that statement executions are not counted.
cu_spec
A valid compile unit specification. If omitted, all compile units with statement information are processed.

Usage notes

  • In the disassembly view, SET FREQUENCY is not supported.
  • Because the collection of frequency data can add a substantial amount of overhead, set the SET FREQUENCY command to ON only when you intend to make use of this data. Do not routinely set the SET FREQUENCY command to ON in debug sessions in which you do not intend to make use of this data.
  • If the DATA option of the PLAYBACK ENABLE command is in effect for the current compile unit, you can use the SET FREQUENCY command while you replay recorded statements by using the PLAYBACK commands.

Example

Specify that statement executions are counted in compile units main and subr1.
SET FREQUENCY ON (main, subr1);

Refer to the following topics for more information related to the material discussed in this topic.