Skip to main content

Module metrics

Module metrics 

Source
Expand description

Per-instance counters: hits, misses, evictions, admissions, and shard-contention events.

Wraps the base BlockCache and adds atomic counters around get / put. Use this when you want a single-instance summary; for system- wide histograms reach for subms-hdr-histogram.

All counters are AtomicU64 so the cache is Send + Sync and can be wrapped in Arc for multi-threaded summary reads even when the cache itself is single-writer.

Structsยง

CacheMetrics
MetricsCache
Counter-wrapped block cache.