0

I am trying to get the CPU usage by specific process

Like in the below image the CPU column shows the CPU usage by specific process But did not get similar counter in perfmon

I tried using \Process\% Processor Time but the value shown in PerfMon are different.

enter image description here

enter image description here

Thanks in Advance

Solved from Below Post:

Didn't find any direct way from perfmon so decided to write code for that and it worked.

Calculating process cpu usage from Process.TotalProcessorTime

Community
  • 1
  • 1
khan07
  • 71
  • 1
  • 10

1 Answers1

0

From the perfmon snapshot, there are two counters and the graphs of both counters have the same color. That's why the result is confusing. You should either uncheck the first counter (which represents the total processor time) or change the color of one of the counters by right clicking on the counter and accessing its properties.

Hadi Brais
  • 22,259
  • 3
  • 54
  • 95