1

I am using multiple instance of a program like Notepad.exe thus n-instances of it the same time.

I wanted to create a performance counter so that it will give the CPU utilization for each process.

The number of running instances of notepad is dynamic.

I tried all the approach but did not find a way how to track multiple instances of same process to get the stats.

  • Does this answer your question? [c# calculate CPU usage for a specific application](https://stackoverflow.com/questions/1277556/c-sharp-calculate-cpu-usage-for-a-specific-application) –  Aug 06 '21 at 04:56
  • Use [@shytikov's answer](https://stackoverflow.com/a/49064915/12031933) from the suggested duplicate to get per-process ID usages. –  Aug 06 '21 at 05:00

0 Answers0