Consuming Counter Data
Programs that want to read and make use of Windows Performance Counter data can use one of several interfaces as appropriate for the scenario.
- Scripts can use the WMI Performance Counter Classes or the TypePerf tool.
- .NET programs can use the PerformanceCounter Class.
- The Performance Data Helper (PDH) library provides high-level access to data from both V1 and V2 performance counter providers via a Win32 (C/C++) API.
- The registry interface provides access to data from both V1 and V2 performance counter providers via the special
HKEY_PERFORMANCE_DATA
registry key. - The PerfLib V2 Consumer functions provide low-level access to data from V2 performance counter providers via a Win32 (C/C++) API.
The PDH interface is recommended for most C/C++ performance data collection tasks because it is easier to use than the registry and PerfLib interfaces.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기