protected override void CreatePerformanceCounters(string[] instanceNames) { traceOperationStarted = new TracerPerformanceCounter(counterCategoryName, "Trace Operations Started/sec"); averageTraceExecutionTime = new TracerPerformanceCounter(counterCategoryName, "Avg. Trace Execution Time"); averageTraceExecutionTimeBase = new TracerPerformanceCounter(counterCategoryName, "Avg. Trace Execution Time Base"); totalTraceOperationsStartedCounter = new TracerPerformanceCounter(counterCategoryName, TotalTraceOperationsStartedCounterName); }
/// <summary> /// Creates the performance counters to instrument the <see cref="Tracer"/> operations associated to the instance names. /// </summary> /// <param name="instanceNames">The instance names for the performance counters.</param> protected override void CreatePerformanceCounters(string[] instanceNames) { traceOperationStarted = new TracerPerformanceCounter(counterCategoryName, "Trace Operations Started/sec"); averageTraceExecutionTime = new TracerPerformanceCounter(counterCategoryName, "Avg. Trace Execution Time"); averageTraceExecutionTimeBase = new TracerPerformanceCounter(counterCategoryName, "Avg. Trace Execution Time Base"); totalTraceOperationsStartedCounter = new TracerPerformanceCounter(counterCategoryName, TotalTraceOperationsStartedCounterName); }