Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Performance : Difference between PDH and WMI Performance Counters

Posted on 2004-08-19
4
Medium Priority
?
1,049 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 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

971 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