Caché Monitoring Guide - InterSystems Documentation
Caché Monitoring Guide - InterSystems Documentation
Caché Monitoring Guide - InterSystems Documentation
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Examining Routine Performance Using ^%SYS.MONLBL<br />
2.) Memory Requirements<br />
Enter the number of your choice:<br />
• Enter 1 to begin the dialog to provide the appropriate information to Start <strong>Monitoring</strong>.<br />
• Enter 2 to calculate an estimate of how much memory a collection needs before actually starting the monitor. See the<br />
Estimate Memory Requirements section for details.<br />
7.1.1 Start <strong>Monitoring</strong><br />
You can select which routines and processes to monitor and which metrics to collect. These characteristics of the collection<br />
remain until you stop the monitor. You provide monitoring collection information to the routine in the following order:<br />
1. Routine Names – Enter a list of routine names to monitor. You can only select routines accessible from your current<br />
namespace. Do not use the leading ^ when entering the routine name; the names are case-sensitive. You may use<br />
asterisk (*) wild cards to select multiple routines. Press Enter twice after entering the last routine name to end the list.<br />
2. Select Metrics to monitor – Enter the number of your choice of what type of metrics. The default is 1 for<br />
minimal metrics.<br />
Select Metrics to monitor<br />
1) Monitor Minimal Metrics<br />
2) Monitor Lines (Coverage)<br />
3) Monitor Global Metrics<br />
4) Monitor All Metrics<br />
5) Customize Monitor Metrics<br />
Enter the number of your choice: <br />
A description of what metrics are included for each option follows:<br />
• Minimal metrics — Monitors the metrics described in the following table.<br />
Metric<br />
Metric#: 34 - RtnLine<br />
Metric#: 51 - Time<br />
Metric#: 52 - TotalTime<br />
Description<br />
Number of times a routine line is executed<br />
Clock time spent in executing that line<br />
Total clock time for that line including time spent in subroutines<br />
called by that line<br />
Note:<br />
Total Time for Recursive Code<br />
When a routine contains recursive code, the TotalTime counter for the line which calls back into the<br />
same subroutine only records the time of the outermost call, which should be, in most cases, the actual<br />
time to run the recursive loop. Prior <strong>Caché</strong> releases accumulated the time for multiple iterations of the<br />
same code reporting times that may have seemed too large.<br />
• Lines — Monitors the number of times a routine line is executed (Metric#: 34 - RtnLine).<br />
• Global metrics — Monitors several global metrics (Metric# 1-26,34-36,51,52).<br />
• All metrics — Monitors all available metrics.<br />
• Customize metrics — Allows you to create a customized list of metrics to monitor. You can select any of the<br />
standard performance metrics supported by the %Monitor.System package classes. Enter a question mark () when<br />
prompted for the metric item number to see a list of available metrics. For example:<br />
58 <strong>Caché</strong> <strong>Monitoring</strong> <strong>Guide</strong>