Details:
In this method, the Performance Monitor logs the values of the counters that you configure. It uses a comma-separated values format (CSV) so you can inspect and analyze the values in Microsoft Excel.
Configuring the counts
You can check the basic stability of the PcVue application as follows.
- From the Windows Start button, select Programs/ARC Informatique/ PcVue xxxxx/Tools/Performance Monitor
- In the System Monitor’s window bar, click on the icon to open its menu, then select Custom View to open the Customize View dialog.
- Tick the boxes to open the console tree (a pane to the left) etc.
- In the Performance Monitor’s main menu, click on the ‘+’ icon (Add, Ctrl+I) to open the Add Counters dialog: images for (XP) and (NT)
|
There is a delay while the analysis takes place.
|
- Set the option Use Local Computer Counters.
- Select these contextual settings:
- In the drop-down list of counters, select % Processor Time, then click on Add to include it. Repeat that for Private Bytes.
|
When you select a counter, you can use the Explain button to display a definition of what it does.
|
What you see in the traces
When the application is started, the monitored values increase.
This is normal as the application is taking CPU resources and space in memory (for variables, mimics, buffer allocation, etc.). Over several hours (depending on the application) the mean values should stabilize.
How to configure a performance log
- In the Performance Monitor, open the folder Performance Logs and Alerts.
- Right-click on Counter Logs and select the New Log Settings to open the New Log Settings dialog.
- Enter a name for the new log.
- In the Log Properties dialog’s General tab, choose a storage location or accept the default path and name.
- In the section Sample Data Every…, set an interval for sampling or accept the default.
- Click on the Add Counters button to open the Add Counters dialog.
- Select the option Select Local Computer Counters and the Processor from the drop-down list.
- In the Log Files tab, you can configure the type and name of the log file.
- Click its Configure button to open the dialog Configure Log Files. You can set a size limit (in megabytes).
- In the Log Properties dialog’s Schedule tab, you can configure either manual or automatic starting and stopping of the logging activity.
- Close the dialogs and the Performance Monitor window.
Logging
The logging activity will run according to the schedule settings:
- Manually when you right-click on a log and select Start or Stop.
- Automatically, starting at a specified time and stopping at a specified time or after the specified interval.
|
You can mix the manual and automatic modes of starting and stopping.
|
The most useful counters to log are usually as follows:
- Private bytes of PcVue.
- Number of handles.
- % CPU time for thread 0 (User Interface).
- Process time %.
Reporting
To review the log, you open its comma-separated values file (CSV) in a tool such as Microsoft Excel.
- Stop the Performance Monitor:
In its left-hand pane, select Logs and Performance Alerts.Trace Logs
In its right-hand pane, right-click on the PcVue entry and select Stop
- Open the folder that you configured for storing the log file.
- Double-click on the log file you wish to view. It will open in whichever tool is configured to open CSV files, usually Excel.
You can then use the tool’s facilities to choose columns and apply headings, to round and filter the values for inspection, to highlight anomalies, to display the results graphically etc.
|