static interface WindowCache.StatsRecorder
Modifier and Type | Method and Description |
---|---|
WindowCacheStats |
getStats()
Returns a snapshot of this recorder's stats.
|
void |
recordEvictions(int count)
Record cache evictions due to the cache evictions strategy
|
void |
recordHits(int count)
Record cache hits.
|
void |
recordLoadFailure(long loadTimeNanos)
Record a failed load of a cache entry
|
void |
recordLoadSuccess(long loadTimeNanos)
Record a successful load of a cache entry
|
void |
recordMisses(int count)
Record cache misses.
|
void |
recordOpenBytes(PackFile pack,
int delta)
Record cached bytes
|
void |
recordOpenFiles(int delta)
Record files opened by cache
|
void recordHits(int count)
count
- number of cache hits to recordvoid recordMisses(int count)
count
- number of cache misses to recordvoid recordLoadSuccess(long loadTimeNanos)
loadTimeNanos
- time to load a cache entryvoid recordLoadFailure(long loadTimeNanos)
loadTimeNanos
- time used trying to load a cache entryvoid recordEvictions(int count)
count
- number of evictions to recordvoid recordOpenFiles(int delta)
delta
- delta of number of files opened by cachevoid recordOpenBytes(PackFile pack, int delta)
pack
- pack file the bytes are read fromdelta
- delta of cached bytes@NonNull WindowCacheStats getStats()