Collect r-code usage statistics
- Last Updated: February 11, 2026
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
When you use statistics startup parameters, OpenEdge writes statistics at the end of the
session. You can use the SHOW-STATS statement in concert with the startup
parameters to write statistics at specific times during execution. The statistics collected
with the SHOW-STATS statement do not include the report of all startup
parameters and their values that you get with the Statistics (-y) startup
parameter.
Statistics-gathering mechanisms include these various startup parameters:
-
Statistics
(
-y) — Use this startup parameter to collect procedure access and usage statistics throughout the OpenEdge session. This parameter also sends a report of all startup parameters and their values to the output file. -
Statistics with
CTRL-C
(
-yc) — When you use this startup parameter, press CTRL-C rather than using theSHOW-STATSstatement to control when to collect statistics during execution. -
Segment Statistics (
-yd) — Use this startup parameter to write segment statistics, such as the number of segments and their total size, to the output file. -
Statistics with Cross-reference (
-yx) — Use this startup parameter to collect procedure call statistics.
The following example shows the -y startup parameter statistics generated on
execution of execlog.p. (See Run-time diagnostics
for sample code of execlog.p.)
Sample -y startup parameter statistics
|
-db sports2020 , -1).Sample r-code segment statistics
The following example shows the -yd r-code segment statistics generated on
execution of execlog.p. (See Run-time diagnostics
for sample code of execlog.p.)
|
Sample procedure call statistics
The following example shows the -yx statistics generated on execution of
execlog.p. (See Run-time diagnostics for sample
code of execlog.p.)
|
For detailed information on statistics startup parameters, see Startup Command and Parameter Reference. For a description of the
SHOW-STATS statement, see ABL Reference.