SET FREQUENCY command
Controls whether statement executions are counted. The initial
setting is OFF
.
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 toON
only when you intend to make use of this data. Do not routinely set theSET FREQUENCY
command toON
in debug sessions in which you do not intend to make use of this data. - If the
DATA
option of thePLAYBACK ENABLE
command is in effect for the current compile unit, you can use theSET FREQUENCY
command while you replay recorded statements by using thePLAYBACK
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.
- Related references
- cu_spec
- LIST FREQUENCY command
- SET SUFFIX command (full-screen mode)