Adding an ATL Performance Monitor Object Manager
Creating a performance monitor object manager is the first step to adding performance monitoring support to your system or server project. Performance monitoring allows your applications and components to publish, capture, and analyze the performance data that applications, services, and drivers provide. You can use this information to determine system bottlenecks and fine-tune system and application performance.
You must create a performance monitor object manager in an ATL DLL project before you can add performance objects and implement performance counters for the object. A performance monitor object manager can have multiple performance objects, which in turn can have multiple counters. The following figure illustrates how the performance monitoring architecture works in your ATL project.
To add an ATL performance monitor object manager to your project
From the shortcut menu, click Add, and then click Add Class.
By clicking Generate Sample Object in the ATL Performance Monitor Object Manager Wizard, you automatically add one sample performance object to the performance monitor object manager and one sample performance counter to the performance object.
A performance monitor can work with an ATL service, but such a service must be added to the ATL DLL project containing the performance monitor. See Performance Monitoring for more information.