?
Solved

CPU Usage of processes

Posted on 2005-02-25
3
Medium Priority
?
264 Views
Last Modified: 2010-04-05
I have had a good look around EE to little success in finding code to determine the percentage CPU usage (and RAM) for any given process.

What i want is code that would allow me to specify a PID at any given time and then be returned with the percentage CPU usage and if possible (in another function) RAM usage.

I am not interested in code to determine the total CPU usage as i already can do this.

Regards,

Hypoviax

0
Comment
Question by:Hypoviax
[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 Comments
 
LVL 6

Accepted Solution

by:
Imthiyaz_ph earned 1000 total points
ID: 13409014
check this link for a set of component for monitoring system activity
http://www.aldyn.ru/products/perfutils/index.html
0
 
LVL 2

Expert Comment

by:heretoread
ID: 13411652
i think you can do it by enumerating processes using NtQuerySystemInformation. although this is undocumented there is a lot of code on the net, M$ might have even made a new API for this for XP SP1+ systems
0
 
LVL 5

Author Comment

by:Hypoviax
ID: 13464186
I will accept you answer seeing no one else really replied :( . I never actually could install it but will try again

Thanks anyway
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month10 days, 16 hours left to enroll

770 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