Jump to content
Sign in to follow this  
rrand

Get CPU Usage of a process?

Recommended Posts

rrand

Does anyone have any idea how I can get the CPU usage of a process? I want to write a script to alert me if a process starts hogging system resources and then use AutoIt to do something to it to fix it if it's an issue I'm aware of.

I know you can use pstat.exe to find out a lot of information, but I'm not sure how to get % CPU load time like in Windows Task Manager.

Any help would be appreciated! Thanks.

Share this post


Link to post
Share on other sites
rrand

Also there is a program that comes with Windows Resource kits called PMON.exe. It has the CPU load percentage in it for each process, but it runs in DOS in real time. I can't seem to just get a text file snapshot of it or otherwise redirect the output to a file. It runs until you hit Q.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×