Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1103
  • Last Modified:

Performance : Difference between PDH and WMI Performance Counters


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
Confettis
Asked:
Confettis
  • 2
  • 2
1 Solution
 
jkrCommented:
>>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
 
ConfettisAuthor Commented:
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
 
jkrCommented:
>>is there no difference sindse they are based on the same registry-key

I'd say they both introduce the same overhead.
0
 
ConfettisAuthor Commented:
Thanks a lot.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

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.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now