title: Get certain processor CPU usage using C#
body: <p>I found the below code on Google to get certain processor CPU usage</p>
  
  <pre><code>int processorCount = Environment.ProcessorCount;
  PerformanceCounter myAppCpu = new PerformanceCounter( "Process", "% Processor Time", "chrome", true);
  float cpuUsage = myAppCpu.NextValue() / processorCount;
  </code></pre>
  
  <p>but in my TaskManager, one disk image may have multi PIDs.</p>
  
  <p><a href="https://i.stack.imgur.com/ilDCu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ilDCu.png" alt="enter image description here"></a></p>
  
  <p>so, I want to know, is the CPU usage this code counted the total usage by the Chrome browser?</p>