Training
Providing Counter Data Using a Performance DLL
Important
Due to significant performance and reliability limitations, the method for providing performance counter data that this topic describes may be altered or unavailable in the future. Instead, Microsoft recommends that you use the method described in Providing Counter Data Using Version 2.0 for creating new performance counters, and that you migrate existing performance counters to use that method as well.
A service, driver, or application that wants to provide counter data can write a performance DLL to provide the data. When a consumer queries performance data, the system loads the provider DLL into the consumer's process and calls the provider to collect the data. For details on writing the performance DLL, see Creating a Performance Extension DLL.
The system uses the registry to determine which provider to call. For information on registering your provider and the counters that it supports, see Adding Performance Counters.
Note
Performance DLLs are not supported on Windows OneCore. If writing a component that must run on Windows OneCore, use the method described in Providing Counter Data Using Version 2.0.
Additional resources
Documentation
-
Creating the Applications Performance Key - Win32 apps
An application that supports performance counters must have a Performance key under the Services key. The following example shows the values that you must include for this key.
-
Providing Counter Data Using Version 2.0 - Win32 apps
With Version 2.0, Performance Counters changed the architecture to simplify the process for providing counter data to consumers.
-
The CTRPP tool is a pre-processor that parses and validates your counters manifest.