Solved

determining the cpu-load

Posted on 1998-10-01
10
288 Views
Last Modified: 2010-04-06
how can i determine the cpu-load in percent
(like taskmanager does?)
0
Comment
Question by:manolis_afentakis
10 Comments
 
LVL 3

Expert Comment

by:KE
Comment Utility
On Windows NT, use the PDH (Performance Data Helper) API.
On Windows 95, your'e on your own ;-)

0
 
LVL 1

Expert Comment

by:BlackDeath
Comment Utility
if you've got time until monday, i'll post you some code fragments i don't have here at work.

regs,

Black Death.
0
 
LVL 3

Expert Comment

by:Matvey
Comment Utility
Hi guys, I think there was even a way to determine the CPU load that some particular thread causes, or am I wrong here? That might be encouraging, but I'm afraid that's all I can help with :) BTW you saw Billy's "System Monitor", right?
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 150 total points
Comment Utility
Hi,

[ Win95 and NT store bunches of performance data in a special "virtual" branch of the registry, HKEY_PERFORMANCE_DATA (NT)
or HKEY_DYN_DATA (Win95). The format is different for NT and Win95 and sparsely documented. You can find something in the win32.hlp file if you search the index for things that start with PERF. ] from Peter Below.

Luckely for you, there exists an example (for NT) :

http://www.wilsonc.demon.co.uk/Delphi%20Components/pviewer/pviewer.zip (D4)

http://www.wilsonc.demon.co.uk/Delphi%20Components/pviewer/D3/pviewer.zip (D3)

Matvey, what is Billy's "System Monitor"...?

Regards, Zif.

0
 
LVL 8

Expert Comment

by:ZifNab
Comment Utility
woops, wrong link, it should be http://www.wilsonc.demon.co.uk/Delphi%20Components/perfmon/perfmon.zip

Regards, Zif.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 3

Expert Comment

by:Matvey
Comment Utility
Ooh, hi Tom! Glad you're back, I'm also having a plenty of holidays here :) How was your trip?

I meant the standard windows system monitor, that should be (if you chosen to install it in the beginning) in Accessories/System Tools/System Monitor.
Found it? It's kinda` simple progy that shows different graphs of the memory usage, CPU usage HD, etc.
I also saw some programs that calculated their own CPU usage - I'm not sure how they do it though: it might be internal calculations of what it THEORETICALLY does, and how much CPU it'll take, or there might actually be a standard way to find it out for each thread how much CPU it uses.
0
 
LVL 8

Expert Comment

by:ZifNab
Comment Utility
Hi Matvey, you on holiday?

Billy, ... now I got it... :-) sghh my mind is still on vacation I guess...

Regards, Zif.
0
 
LVL 3

Expert Comment

by:Matvey
Comment Utility
There are lots of holidays here in september - october, so it's cool, but I'm not going on any trip right now. I'd love to hear about your vacation, how was it in Spain? (write me a note in the email maybe...).

c u, and good night! 2:10 am :)
0
 
LVL 8

Expert Comment

by:ZifNab
Comment Utility
c.u. Matvey, I'll write you about Spain, soon. 2:30 am here :-)
good night to you too! Zif.
0
 

Author Comment

by:manolis_afentakis
Comment Utility
hi ZifNab , this is a very good hint , but I can't found this Information

eg  CPU-load: 4%

how can I extract this Information?

thanks
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now