2 writes to _counters
System.Runtime.Caching (2)
System\Caching\PerfCounters.cs (2)
78
_counters
= new PerformanceCounter[NUM_COUNTERS];
134
if (counters != null && Interlocked.CompareExchange(ref
_counters
, null, counters) == counters) {
11 references to _counters
System.Runtime.Caching (11)
System\Caching\PerfCounters.cs (11)
80
_counters
[(int)PerfCounterName.Entries] = new PerformanceCounter(PERF_COUNTER_CATEGORY, CACHE_ENTRIES, instanceName, false);
81
_counters
[(int)PerfCounterName.Hits] = new PerformanceCounter(PERF_COUNTER_CATEGORY, CACHE_HITS, instanceName, false);
82
_counters
[(int)PerfCounterName.HitRatio] = new PerformanceCounter(PERF_COUNTER_CATEGORY, CACHE_HIT_RATIO, instanceName, false);
83
_counters
[(int)PerfCounterName.HitRatioBase] = new PerformanceCounter(PERF_COUNTER_CATEGORY, CACHE_HIT_RATIO_BASE, instanceName, false);
84
_counters
[(int)PerfCounterName.Misses] = new PerformanceCounter(PERF_COUNTER_CATEGORY, CACHE_MISSES, instanceName, false);
85
_counters
[(int)PerfCounterName.Trims] = new PerformanceCounter(PERF_COUNTER_CATEGORY, CACHE_TRIMS, instanceName, false);
86
_counters
[(int)PerfCounterName.Turnover] = new PerformanceCounter(PERF_COUNTER_CATEGORY, CACHE_TURNOVER, instanceName, false);
112
PerformanceCounter counter =
_counters
[idx];
119
PerformanceCounter counter =
_counters
[idx];
126
PerformanceCounter counter =
_counters
[idx];
132
PerformanceCounter[] counters =
_counters
;