Launch the agent by clicking on the Profile button. This will instantiate an instance of the PerfMon agent in the profiling monitor:
It is not yet monitoring hence the <attached tag>. To start monitoring, right-click on the PerfmonAgent node and select Start Monitoring from the pop-up menu:
The Perfmon agent node will now have the tag <monitoring> rather than<attached>as a tag:
At this point we need to populate the various views by clicking on the Link With Viewer button in the toolbar. To do this, as explained earlier, click on the Link With Viewer button in the toolbar:
When the PerfMon agent is instantiated an entry corresponding to it is placed in the Agent Control view:
That entry will subsequently be used to control the PerfMon agent. When the agent is monitoring, open up this entry (click on the '+' prefixing the agent node). This will result in the top-level entries in the hierarchy of PerfMon performance objects being displayed:
Scroll down to find the particular performance object(s) that you're interested in and open them (click on the '+') to obtain lower-level details. For example, for the Processor performance object, open it, then open its Total child node, and then check the check box associated with Processor Time:
In the statistical summaries view, select similarly the Processor Time metric. Notice that there is an entity 'Observation' immediately below it.
This entry effectively defines what will appear in the Statistical Graph View and how it will be displayed. You can set the line color and width, and define which scale (Horizontal or Vertical) the line graph is to be displayed against. To change these settings, click on the field holding the value, and choose from ether a down-arrow symbol or an ellipsis. For the former, either type the required value in directly or select from the drop-down list. For the latter, which applies to the Color property, select the new color from the displayed palette.
The check box to the immediate left of Observation makes the graph visible in the statistical graph view if it's checked, not visible otherwise.
To view the performance data in the statistical graph view, right-click on the Horizontal 1 scale and select Snap to Associated Graphs from the pop-up menu.
This will synchronize the graph scaling with the timing of the performance data so that the performance data will be viewable, as below:
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.