NBench.BenchmarkContext.BenchmarkContext C# (CSharp) 메소드

BenchmarkContext() 공개 메소드

public BenchmarkContext ( Counter>.IReadOnlyDictionary counters, IBenchmarkTrace trace ) : System
counters Counter>.IReadOnlyDictionary
trace IBenchmarkTrace
리턴 System
        public BenchmarkContext(IReadOnlyDictionary<CounterMetricName, Counter> counters, IBenchmarkTrace trace)
        {
            Trace = trace;
            _counters = counters.ToDictionary(k => k.Key.CounterName, v => v.Value);
        }