R
Raghuvansh
I am able to find out the process names by the code below but am
clueless how to find out the CPU Usage levels of hte process at any
given time.
Any help??
Dim myProcesses() As Process = Process.GetProcesses
Dim myProcess As Process
For Each myProcess In myProcesses
If (myProcess.ProcessName.ToLower = "buggyprocess") Then
myProcess.Kill()
End If
Next
PS: I want to monitor 'buggyprocess' and see if its 'CPU Usage'
remains above 75% over a period of time, then kill it.
clueless how to find out the CPU Usage levels of hte process at any
given time.
Any help??
Dim myProcesses() As Process = Process.GetProcesses
Dim myProcess As Process
For Each myProcess In myProcesses
If (myProcess.ProcessName.ToLower = "buggyprocess") Then
myProcess.Kill()
End If
Next
PS: I want to monitor 'buggyprocess' and see if its 'CPU Usage'
remains above 75% over a period of time, then kill it.