sonia.sardana
Active member
- Joined
- Jan 25, 2009
- Messages
- 35
- Programming Experience
- Beginner
Can i know hoe to find the CPU Usage of individual Process in %.
I found the following code thru the net-
But I not getting it.
Here m_PerformanceCounter.NextValue() will gives the cpu usage percentage
What we have to write in place of these
1) Processor
2)% Processor Time
3)_Total
Any help will be greatly Appreciated.
I found the following code thru the net-
But I not getting it.
VB.NET:
Private m_PerformanceCounter As New System.Diagnostics.PerformanceCounter("Processor", "% Processor Time", "_Total")
Dim cupcount As String = CInt(m_PerformanceCounter.NextValue()) & "%"
Here m_PerformanceCounter.NextValue() will gives the cpu usage percentage
What we have to write in place of these
1) Processor
2)% Processor Time
3)_Total
Any help will be greatly Appreciated.
Last edited by a moderator: