pub struct LedgerSummary {
pub sample_count: usize,
pub overhead_p50_ns: u64,
pub overhead_p99_ns: u64,
pub phase_deltas: Vec<PhaseDeltaSummary>,
pub max_rss_bytes: u64,
pub samples: Vec<[u64; 10]>,
}Expand description
Re-exported so hotl_engine::LedgerSummary resolves alongside
EngineEvent::LedgerReport — the loop-overhead instrument (§S1) lives in
its own module ([ledger]) since it is self-contained (no dependency on
the rest of the engine’s types) and independently unit-tested.
What gets flushed at TurnFinished (as an crate::EngineEvent::LedgerReport,
never the canon log) and what a CI regression gate consumes.
Fields§
§sample_count: usizeSamples actually taken this turn, capped at 64 — past the cap this is
64, not the true (dropped) count.
overhead_p50_ns: u64§overhead_p99_ns: u64§phase_deltas: Vec<PhaseDeltaSummary>§max_rss_bytes: u64§samples: Vec<[u64; 10]>Raw per-sample phase stamps (nanoseconds, process-relative; 0 =
absent), in Phase declaration order — the material the p50/p99
fields above are computed from, exposed directly so a consumer isn’t
limited to this module’s own aggregation choices.
Trait Implementations§
Source§impl Clone for LedgerSummary
impl Clone for LedgerSummary
Source§fn clone(&self) -> LedgerSummary
fn clone(&self) -> LedgerSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more