p2p/host/peerstore/pstoremem/metrics library
Metrics implementation for the memory-based peerstore.
Classes
- MemoryMetrics
- A memory-based implementation of the Metrics interface.
Constants
- latencyEWMASmoothing → const double
- The smoothing factor for the exponentially weighted moving average.
Functions
-
newMetrics(
) → MemoryMetrics - Creates a new memory-based metrics implementation.