大网数据广告活动
性能与资源

Providing Counter Data

· 52CE 我爱测

In Windows Vista, Performance Counters implemented a new architecture (version 2.0) for providing counter data.

Software components that publish data via Windows Performance Counters are called performance data providers.

Windows supports two kinds of performance data providers. Legacy performance data providers (V1 providers) are implemented using an .INI file and a performance DLL. Modern performance data providers (V2 providers) use a .MAN (XML manifest) and the performance counter provider APIs.

Manifests

Modern performance data providers use a .MAN (XML manifest) to define the counter data and use performance counter provider APIs to manage data within the context of the provider.

Providers implemented using a manifest and performance counter provider APIs are often called V2 providers.

Windows supports user-mode V2 providers on Windows Vista or later. For user-mode details, see Providing Counter Data Using Version 2.0.

Windows supports kernel-mode V2 providers on Windows 7 or later. For kernel-mode details, see Kernel Mode Performance Monitoring.

Performance DLL (deprecated)

In the legacy performance counter architecture, providers implemented a performance DLL to that ran in the consumer's process to collect and provide the counter data when a consumer requested it. The provider used an initialization (.INI) file and registry entries to define the counters and to configure the performance DLL.

Providers implemented using an .INI file and a performance DLL are often called V1 providers.

Caution: Although you can still use a performance DLL to provide counter data, this architecture is deprecated due to significant performance and reliability limitations. In addition, V1 providers are often harder to implement since they require shipping a separate DLL that must run in the consumer's process.

For details, see Providing Counter Data Using a Performance DLL.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 07/14/2025
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。