stats static method
Aggregated diagnostics for BenchLab.
Implementation
static CacheStats stats() {
var populated = 0;
for (final p in _partitions.values) {
populated += p.entries.length;
}
final lookups = _hits + _misses;
return CacheStats(
partitions: _partitions.length,
capacity: maxSnapshotCaches * snapshotCacheSize,
populated: populated,
hits: _hits,
misses: _misses,
evictions: _evictions,
hitRate: lookups == 0 ? 0 : _hits / lookups,
);
}