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)
89
internal void Increment(
CounterName
name)
94
internal void IncrementBy(
CounterName
name, long value)
99
internal 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);