Solved

Performance : Difference between PDH and WMI Performance Counters

Posted on 2004-08-19
4
956 Views
Last Modified: 2013-12-03

I wonder what the differences are between the Performance Data Helper ( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/base/performance_data_helper.asp ) and the WMI Performance Counter Classes ( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/performance_counter_classes.asp). Are they based on the same function, what is their relation ??
And, what should I use to make a performance monitoring tool ??

Thanks in advance, any idea/contribution is very appreciated
0
Comment
Question by:Confettis
  • 2
  • 2
4 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 11841133
>>Are they based on the same function, what is their relation ??

They're based on the same functionality/technology and read the data from the HKEY_PERFORMANCE_DATA key in the registry.

>>And, what should I use to make a performance monitoring tool ??

That depends - if you are already using WMI or VB, I'd go that way, but from e.g. C++, WMI interfaces are more than cumbersome to handle.
0
 

Author Comment

by:Confettis
ID: 11842749
Thanks for your answer.
And which of the two requires less system resources (or, is there no difference sindse they are based on the same registry-key )??
0
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 11844018
>>is there no difference sindse they are based on the same registry-key

I'd say they both introduce the same overhead.
0
 

Author Comment

by:Confettis
ID: 11844787
Thanks a lot.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now