Solved

Performance Monitoring ?

Posted on 1997-09-25
4
244 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 1

Accepted Solution

by:
dionysos_swamp earned 30 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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 Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

739 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