Metrics.NET icon indicating copy to clipboard operation
Metrics.NET copied to clipboard

PerformanceCounters wrong when multiple instances of process running

Open yonkavalow opened this issue 7 years ago • 0 comments

If i have two copies of my process running then Perf Counters will add a #1 to the name of the process.

I think that when PerformanceCounters.cs calls Process.GetCurrentProcess().ProcessName it doesn't get the PerfCounter name with the #1 and I'm getting the wrong stats for WorkingSet etc...

yonkavalow avatar Mar 16 '18 14:03 yonkavalow