I'm just trying your library with the examples provided into the documentation page.
/// Logs the user.
public void LogUser()
if (!IsEnabled) return;
using (CounterHelper<MultipleInstancePerformanceCounters> counterHelper = PerformanceHelper.CreateCounterHelper<MultipleInstancePerformanceCounters>())
The problem is that there is no values recorded into the counter when i look through the performance monitor (perfmon.msc).
After some debugging, I was able to keep track of values avoiding the object disposal of your examples. (removing the "using" block).
What is your advice to use this library? Currently, I'm using a custom singleton class to invoke my counters, this class should be instantiated and also disposable?
Thanks in advance for your advice.