How Can I Analyze Timed Statistics?

A script (analyze_stats.bat) is available to analyze timed statistics output. The script creates a configuration file for the tables analyzed by the report. The generated configuration file shows tables that you could configure for caching and the recommended number of records to be cached. The generated configuration file can be used as is. You could also modify the settings or use the recommendations to create a new configuration file or update an existing one. If you already have a configuration file for a table that has been analyzed through the analyze_stats.bat script, you can merge the recommendations into your existing configuration file.

After you run a process with timestats turned on, you can run analyze_stats.bat. The script does the following:

  • Create a report of the timestats data with output organized in meaningful ways.

    By default, the report is sent to the screen (standard output). Send to a file if you want to be able to print the output.

    The report can be disabled with the -q option. If the -q option is used, only the configuration file is created.

  • Generate a configuration file with recommendations about how caching could improve processing of the tables accessed by the program:

    productline|dataarea.programname .cfg

    where productline|dataarea.programname is specified in the timestats data.

    If you run the run the analyze_stats.bat script using the -d (data area) option, all programs in the data area are analyzed and a configuration for each is created. The generation of the configuration file can be disabled with the -r option. If the -r option is used, only the report is created.