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

x
?
Solved

Performance Monitoring ?

Posted on 1997-09-25
4
Medium Priority
?
248 Views
Last Modified: 2010-04-04
Anybody got code or a component to get to the performance monitoring functions under NT ? And how does this differ from the stuff stored in Windows 95's registry ?
0
Comment
Question by:gideon
  • 3
4 Comments
 
LVL 1

Accepted Solution

by:
dionysos_swamp earned 120 total points
ID: 1346283
Regarding the code: I have done a cool set of classes for reading the performance data in NT, I'm just cleaning it up and I will them monday as the answer to ffrand's question regarding Performance data.

Regarding the performance data in 95 vs. NT, it can be found under the Hkey_dyn_data key, but you seem to know that.
The difference is that the data in 95 is rather simple and not that detailed, in return it's easy to get and use, in NT the data is highly detailed and extremly complex, in NT you get the data by requesting the field 'global' from Hkey_performance_data, this yields a huge binary gob that you have to figure out on your own, furthermore the raw data that you get once you dismantle the structure has to undergo a strange cooking proccess to be useful.
For example: to get processor usage:
1) get cpu counter from system object
2) wait...
3) get cpu counter from system object
4) divide delta counter by the time consumed during wait.

And getting the cpu time is a simple matter, there are a lot (30) different modifiers that has to be taken into account.

To further complicate matters there are 3 different timebases used by the data, of wich one of them can change from object to object.

The url to my delphi NT performance lib will be:

http://www.yi.com/home/FlemmingFrandsen/dlp_perf.zip

This addy will be valid from monday 29/9 1997 and the file will contains full source to both the classes and a couple of cool example programs.
 
0
 
LVL 1

Expert Comment

by:dionysos_swamp
ID: 1346284
the real url is now:
http://www.yi.com/home/FlemmingFrandsen/ntperf.exe

or open my homepage:
http://www.yi.com/home/FlemmingFrandsen/
and click on the download page
0
 
LVL 1

Expert Comment

by:dionysos_swamp
ID: 1346285
the real url is now:
http://www.yi.com/home/FlemmingFrandsen/ntperf.exe

or open my homepage:
http://www.yi.com/home/FlemmingFrandsen/
and click on the download page
0
 

Author Comment

by:gideon
ID: 1346286
Thanks that helps.
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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
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. …
Suggested Courses

772 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