how to get cpu and memory usage values of apps just like Task Manager on Windows 10?

  • Thread starter Thread starter Baacus35
  • Start date Start date
B

Baacus35

Guest
Hi,

I want to make an application which observes all applications and processes on Task Manager and checks cpu and memory usage of applications. If an application uses memory or cpu more than a threshold, my application should kill this app.

Task Manager on Windows 10 shows the processes as grouped by its application name. For example, Skype application has two processes which are "SkypeBridge" and "RuntimeBroker", they are shown as grouped by "Skype" name and Task Manager shows total cpu and memory usage of these processes. What I am trying to do is the same. I want to get cpu and memory values of these groups just same as Task manager.

I tried performance counter class, wmi queries but none of them gave the same values on Task Manager.

Thanks for help!

Continue reading...
 
Back
Top