Adding a Performance Monitor Counter 

Adding a performance monitor counter is the third step to adding performance monitoring support to your system or server project. Use the ATL Performance Monitor Counter Wizard to add a performance monitor counter to an ATL DLL project to which you have already added a performance monitor object manager and a performance object.


You can either add performance monitor support into an ATL project created using the ATL Project Wizard, or you can add performance support to an MFC application by adding ATL support to your MFC application.

Counters are the means by which the performance object gathers data from the system or server. Each counter is responsible for a specific area of system functionality, and it is identified by a unique name and type. ATL performance counters provide data in two forms:

  • Raw counter values; for example, Raw Counter.

  • A calculation of raw data and another component, such as a value averaged over time; for example, Timer.

See the following topics for more information:

Just as you can add multiple performance objects to a performance monitor object manager, you can add multiple counters to a performance object. Some of these counters provide information used by other counters.

Performance Monitor Object Manager with Performance Objects and Counters
Performance Object Monitor graphic

See Performance Monitoring for more information.

To add an ATL performance monitor counter to your project

  1. In Class View, expand the project to display the project's classes.

  2. Right-click the performance object's class name to which you want to add the performance counter.

  3. On the shortcut menu, click Add. Click Add Perfmon Counter to display the Add Perfmon Counter Wizard.

See Also


Performance Data Collection

Community Additions