2 writes to _counters
System.Runtime.Caching (2)
System\Caching\PerfCounters.cs (2)
78_counters = new PerformanceCounter[NUM_COUNTERS]; 134if (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); 112PerformanceCounter counter = _counters[idx]; 119PerformanceCounter counter = _counters[idx]; 126PerformanceCounter counter = _counters[idx]; 132PerformanceCounter[] counters = _counters;