Skip to main content

Module metrics

Module metrics 

Source
Expand description

Bounded observability infrastructure for the Shape VM.

Provides VmMetrics — a lightweight, zero-overhead-when-disabled metrics collector with fixed-size ring buffers for tier/GC events and a log-linear histogram for GC pause latencies.

Structs§

GcPauseEvent
A garbage-collection pause event.
Histogram
Log-linear histogram for recording latency values in microseconds.
MetricsSummary
A point-in-time summary of VM metrics.
RingBuffer
Fixed-size circular buffer that overwrites the oldest element when full.
RingBufferIter
Iterator over a RingBuffer from oldest to newest.
TierEvent
A tier transition event for a single function.
VmMetrics
Aggregated VM metrics with bounded memory usage.