We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Getting performance data from the registry (like CPU load)

ffrand
ffrand asked
on
Medium Priority
301 Views
Last Modified: 2010-04-04
I'd really like to be able to get the performance data from the registry, this data is stored under the HKEY_PERFORMANCE_DATA key and should be accessible through standart registry calls, I have made the call to get the large gob of data from the registry, I just need to make sense of it, I'd like to get the CPU load, but also other data in time.
The documentation of the data is contained in the M$ helpfile called win32sdk.hlp (or something) under the title Performance Data Helper (PDH) and is horribly lacking in detail and hard to understand, in that help file there is also a C++ example of how to dismantle the data returned, I just havn't go the energy to translate it...
Comment
Watch Question

I'd like to try and translate it for you, but, since i access Experts-Exchange at work, where there's no Delphi, would you mind posting the offending help page here?

-julio

Author

Commented:
I have already translated the example from the helppage myself,
the example from the help file doesn't write out the values of the performance counters, I tried that myself, but it seems that I didn't translate the records correctly, by translating the file winperf.h I hope to get the records aligned correctly.
Humm, so how may i help you? Do you still want some help?

-julio

Author

Commented:
Well, I'm still having some trouble with it, so if someone has a nice Class for delphi that makes it all sugar coated I'd really like it before I start coding one myself...
try out my classes for just that at:

http://www.yi.com/home/FlemmingFrandsen/ntperf.exe

if that url is invalid jsut click on the download page on my homepage:
http://www.yi.com/home/FlemmingFrandsen/

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Cool! the classes are quite easy to use and they do what I wanted, thanks.

Commented:
Bogus !

the link is gone and I just lost 39 points

can someone give an update on the examples ?

thanks a bunch
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.