Try OpenEdge Now
skip to main content
Startup Command and Parameter Reference
Startup Parameter Descriptions : Statistics (-y)
 

Statistics (-y)

Use Statistics (-y) to collect procedure access and usage statistics throughout the OpenEdge session.
Operating system and syntax
UNIX / Windows
-y
Use with
Maximum value
Minimum value
Single-user default
Multi-user default
Client Session
At session end, the AVM writes these statistics to the default output file client.mon. For detailed information on the output written to the client.mon file, see OpenEdge Deployment: Managing ABL Applications.
At startup, the -y parameter sends a report of all the startup parameters to the output file. This report includes all default values, overridden values, and values you set at startup. Unlike the other statistics that the -y parameter collects, this report is not written at session end and is not affected by the SHOW-STATS statement.
Note: The specific statistics displayed might change periodically as new OpenEdge features are implemented.
The edit buffer map statistics are written each time a user exits from OpenEdge or uses the SHOW-STATS statement. These lines list the procedures currently in the edit (or execution) buffer and their r-code sizes.
Note: If you cannot execute SHOW-STATS from the Procedure Editor or cannot add the statement to your ABL code (for example, if while using Run-time OpenEdge), you can specify Statisticswith CTRL+C (-yc) instead of the -y parameter. Both parameters behave the same way, except -yc lets you use CTRL+C as a substitute for the SHOW-STATS statement.
The program-access statistics are written to the output file when the session ends or when you use the SHOW-STATS statement. In the output, temp file reads and writes are reads and writes to the SRT file, which stores each user's session compiles and active r-code files. The Bytes column is a cumulative total. The Stat file checks are recorded because they represent a relatively time-consuming system call. Unless you invoke Quick Request(-q), the AVM makes a stat call each time a precompiled subprocedure is called with the RUN statement.
The AVM places the default output file (client.mon) in the current working directory; however, you can specify a different output file by using the CLIENTMON environment variable. Simply set CLIENTMON to point to the file you want to use. For example, in a UNIX environment, if you wanted to use a file named stats in the /usr/tmp directory, enter the following command at the system prompt:
CLIENTMON=/usr/tmp/stats; export CLIENTMON