Performance counter provider for Windows

Source: Internet
Author: User

[b] 0. Introduction [/b]windows provides a performance monitor (Perfmon.msc) to track application performance and provides a set of performance counter APIs that can be easily read in the application. We can use this data to find bottlenecks in the system or software, find out where the software is slowing down, where it needs to be improved/upgraded. Location on MSDN: MSDN Library for Visual Studio. NET 2003:ms-help://ms. Msdnqtr.2003feb.2052/perfmon/base/performance_data.htmmsdn Library for Visual Studio 2008 Simplified Chinese: ms-help:// Ms. The functions of the msdnqtr.v90.chs/perfctrs/perf/performance_counters_portal.htm performance counter begin with PDH. [b] 1. Programming method [/b][i]a. Open Pdh_hquery[/i]pdh_hquery pdhquery=null; Pdh_status pdhstatus=pdhopenquery (null,0,&pdhquery); if (pdhstatus!=error_success) {cout<< "PdhOpenQuery ( ) error:0x "< Performance counter provider for Windows

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.