pub struct StepMetrics {Show 18 fields
pub total_us: u64,
pub command_processing_us: u64,
pub propagator_us: Vec<(String, u64)>,
pub snapshot_publish_us: u64,
pub memory_bytes: usize,
pub sparse_retired_ranges: u32,
pub sparse_pending_retired: u32,
pub sparse_reuse_hits: u32,
pub sparse_reuse_misses: u32,
pub queue_full_rejections: u64,
pub tick_disabled_rejections: u64,
pub rollback_events: u64,
pub tick_disabled_transitions: u64,
pub worker_stall_events: u64,
pub ring_not_available_events: u64,
pub ring_eviction_events: u64,
pub ring_stale_read_events: u64,
pub ring_skew_retry_events: u64,
}Expand description
Timing and memory metrics collected during a single tick.
All durations are in microseconds. The engine populates these fields
after each step() call; consumers (telemetry, backoff logic) read
them from the most recent tick.
Fields§
§total_us: u64Wall-clock time for the entire tick, in microseconds.
command_processing_us: u64Time spent processing the ingress command queue, in microseconds.
propagator_us: Vec<(String, u64)>Per-propagator execution times: (name, microseconds).
snapshot_publish_us: u64Time spent publishing the snapshot to the ring buffer, in microseconds.
memory_bytes: usizeMemory usage of the arena after the tick, in bytes.
sparse_retired_ranges: u32Number of sparse segment ranges available for reuse.
sparse_pending_retired: u32Number of sparse segment ranges pending promotion (freed this tick).
sparse_reuse_hits: u32Number of sparse alloc() calls that reused a retired range this tick.
sparse_reuse_misses: u32Number of sparse alloc() calls that fell through to bump allocation this tick.
queue_full_rejections: u64Cumulative number of ingress rejections due to full queue.
tick_disabled_rejections: u64Cumulative number of ingress rejections due to tick-disabled state.
rollback_events: u64Cumulative number of rollback events.
tick_disabled_transitions: u64Cumulative number of transitions into tick-disabled state.
worker_stall_events: u64Cumulative number of worker stall force-unpin events.
ring_not_available_events: u64Cumulative number of ring “not available” events.
ring_eviction_events: u64Cumulative number of snapshot evictions due to ring overwrite.
ring_stale_read_events: u64Cumulative number of stale/not-yet-written position reads.
ring_skew_retry_events: u64Cumulative number of reader retries caused by overwrite skew.
Trait Implementations§
Source§impl Clone for StepMetrics
impl Clone for StepMetrics
Source§fn clone(&self) -> StepMetrics
fn clone(&self) -> StepMetrics
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more