pub struct StepMetrics {
pub total_us: u64,
pub command_processing_us: u64,
pub propagator_us: Vec<(String, u64)>,
pub snapshot_publish_us: u64,
pub memory_bytes: usize,
}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.
Trait Implementations§
Source§impl Clone for StepMetrics
impl Clone for StepMetrics
Source§fn clone(&self) -> StepMetrics
fn clone(&self) -> StepMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StepMetrics
impl Debug for StepMetrics
Source§impl Default for StepMetrics
impl Default for StepMetrics
Source§fn default() -> StepMetrics
fn default() -> StepMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StepMetrics
impl RefUnwindSafe for StepMetrics
impl Send for StepMetrics
impl Sync for StepMetrics
impl Unpin for StepMetrics
impl UnsafeUnpin for StepMetrics
impl UnwindSafe for StepMetrics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more