CPU Usage in %

Page 1 of 1

1 Replies - 1561 Views - Last Post: 03 February 2009 - 10:58 AM Rate Topic: -----

#1 sonia.sardana  Icon User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 132
  • Joined: 01-June 08

CPU Usage in %

Posted 03 February 2009 - 09:43 AM

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.

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.

Is This A Good Question/Topic? 0
  • +

Replies To: CPU Usage in %

#2 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 418
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: CPU Usage in %

Posted 03 February 2009 - 10:58 AM

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1