How to: Add Counters to Counter Sets Using the Load Test Editor
This topic applies to:
Visual Studio Ultimate
Visual Studio Premium
Visual Studio Professional
Visual Studio Express
When you create a load test with the Load Test Wizard, you add an initial set of counters. These offer you a set of predefined counter sets for your load test. For more information, see How to: Create Counter Sets in the New Load Test Wizard.
If your load tests are distributed across remote machines, controller and agent counters are mapped to the controller and agent counter sets. For more information about how to use remote machines in your load test, see Distributing Load Tests Across Multiple Test Machines Using Test Controllers and Test Agents.
You manage your counters in the Load Test Editor. The counter sets that are already added to the test are visible in the Counter Sets node of the load test. After you create a load test, you can add new counters to existing counter sets.
To add counters to a counter set
Open a load test.
Expand the Counter Sets node. All the counter sets that have been added to the load test are visible.
The load test hierarchy tree also contains the Run Settings node. This node contains the Counter Set Mappings node, which shows all the computers and the counter sets that are mapped to those computers.
Right-click an existing counter set and then click Add Counters.
The Pick Performance Counters dialog box is displayed.
In the Computer drop-down combo box, type the name of the computer you want to map to. Alternatively, select one of the computers in the drop-down list.
Because counter sets must be mapped to a computer before performance data is collected, you must specify a computer on which to collect performance data.
Select a Performance category to filter the categories of performance data counters. You will see two columns of data from which to select performance counters.
Some counter categories will require that you select an instance also. For example, if you select a SQL counter, you must select a SQL instance because there may be more than one instance of SQL installed on the target computer.
Select a counter and an instance to add to your custom counter set.
- or -
Select the All counters radio button to select all available counters.
It is also possible to add counters to a counter set by right clicking an existing counter or counter category, clicking copy, and then pasting it to a different counter set node. Extra counters that are copied, but not needed, can be deleted.