Performance Counters Functions

Use the following functions to consume and provide performance data.

Consumer functions

Use the following Performance Data Helper abstraction-layer functions to consume performance data from both version 1 and version 2 performance counters:

Note  You cannot use the Performance Data Helper abstraction-layer functions if you are writing Windows OneCore apps.
 

Use the following low-level functions to consume performance data from version 2 performance counters if you cannot use the Performance Data Helper abstraction-layer functions:

Provider functions

Performance providers use the following functions:

Note  Performance data providers that use the functions in the previous list are called version 2 providers.
 

A performance extension DLL that provides performance data implements the following functions:

Note  A performance extension DLL is also called a version1 provider. Although you still can use a performance extension DLL to provide counter data, you are encouraged to use the new architecture for new providers instead. You also are encouraged to replace existing version 1 provides with version 2 providers.
 

You can use the following optional functions to register and unregister the .ini data for version 1 providers:

Note  To register and unregister version 2 performance counters, use the lodctr and unlodctr tools. You cannot register and unregister version 2 counter by using the functions for the version 1 providers.
 

 

 

Show: