Link to home
Create AccountLog in
Avatar of 2curiousX
2curiousX

asked on

CPU percentage per process.

I am writing a program in vb.net and I need to get the CPU percentage of a particular process, the window task manager seems to get this. I need to monitor this process so that I can kill rogue processors.  The closest I have come is using WMI Win32_PerfFormattedData_PerfOS_Processor class PercentProcessorTime but I only get 0 or 100.
ASKER CERTIFIED SOLUTION
Avatar of JackOfPH
JackOfPH
Flag of Philippines image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer