Raven.Database.PerformanceCounters.PerformanceCounters C# (CSharp) Method

PerformanceCounters() public method

public PerformanceCounters ( string instnaceName ) : System
instnaceName string
return System
		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;
			}
		}
	}