pub struct SpeculationObservation {
pub baseline_dispatches: u32,
pub baseline_mean_ns: u64,
pub speculative_dispatches: u32,
pub speculative_mean_ns: u64,
pub side_compile_cost_ns: u64,
}Expand description
Per-shape observation feeding the speculation decision.
Fields§
§baseline_dispatches: u32Number of times the baseline variant was dispatched. Used to
gate how confident we are in baseline_mean_ns.
baseline_mean_ns: u64Mean wall-clock dispatch latency of the baseline variant in nanoseconds.
speculative_dispatches: u32Number of times the speculative variant was dispatched.
speculative_mean_ns: u64Mean wall-clock dispatch latency of the speculative variant.
side_compile_cost_ns: u64Side-compile cost (one-time amortized over future dispatches). Treated as overhead the speculative variant must pay back.
Trait Implementations§
Source§impl Clone for SpeculationObservation
impl Clone for SpeculationObservation
Source§fn clone(&self) -> SpeculationObservation
fn clone(&self) -> SpeculationObservation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SpeculationObservation
Auto Trait Implementations§
impl Freeze for SpeculationObservation
impl RefUnwindSafe for SpeculationObservation
impl Send for SpeculationObservation
impl Sync for SpeculationObservation
impl Unpin for SpeculationObservation
impl UnsafeUnpin for SpeculationObservation
impl UnwindSafe for SpeculationObservation
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