public PerformanceCounters(string instnaceName)
{
try
{
numberOfTasksPerSecond = new PerformanceCounter("RavenDB", "# of tasks / sec", instnaceName, false);
}
catch (Exception e)
{
logger.Warn("Could not initailize performance counters. Performance counters will be disabled", e);
recordPerfCounter = false;
}
}
}