26 references to CounterName
System.Runtime.Caching (26)
System\Runtime\Caching\Counters.cs (16)
37_counters[(int)CounterName.Entries] = CreatePollingCounter("entries", "Cache Entries", (int)CounterName.Entries); 38_counters[(int)CounterName.Hits] = CreatePollingCounter("hits", "Cache Hits", (int)CounterName.Hits); 39_counters[(int)CounterName.Misses] = CreatePollingCounter("misses", "Cache Misses", (int)CounterName.Misses); 40_counters[(int)CounterName.Trims] = CreatePollingCounter("trims", "Cache Trims", (int)CounterName.Trims); 42_counters[(int)CounterName.Turnover] = new IncrementingPollingCounter("turnover", this, 43() => (double)_counterValues[(int)CounterName.Turnover]) 51_counters[(int)CounterName.HitRatio] = new PollingCounter("hit-ratio", this, 52() => ((double)_counterValues[(int)CounterName.HitRatio] / (double)_counterValues[(int)CounterName.HitRatioBase]) * 100d) 89internal void Increment(CounterName name) 94internal void IncrementBy(CounterName name, long value) 99internal void Decrement(CounterName name)
System\Runtime\Caching\MemoryCacheStore.cs (10)
86_perfCounters.Increment(CounterName.Entries); 87_perfCounters.Increment(CounterName.Turnover); 121_perfCounters.Decrement(CounterName.Entries); 122_perfCounters.Increment(CounterName.Turnover); 149_perfCounters.Increment(CounterName.Hits); 150_perfCounters.Increment(CounterName.HitRatio); 151_perfCounters.Increment(CounterName.HitRatioBase); 158_perfCounters.Increment(CounterName.Misses); 159_perfCounters.Increment(CounterName.HitRatioBase); 412_perfCounters.IncrementBy(CounterName.Trims, trimmed);