Confettis
asked on
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
ASKER
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 )??
And which of the two requires less system resources (or, is there no difference sindse they are based on the same registry-key )??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks a lot.
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.