pub struct ContentionWitness {
pub per_phase: PerPhaseSchedstat,
pub body_window: BodyContentionWindow,
}Expand description
The event-anchored host-contention witness: per-phase vCPU schedstat
dilation plus the Body-phase CPU-pressure interval series. The monitor
contributes constant-cost samples on its existing timer wakes; lifecycle
dispatch anchors the stage boundaries. Carried on
VmResult::contention_witness so a later seam pass can call
latency_verdict to turn a latency threshold into a tri-state,
contention-aware verdict.
None on VmResult when neither vCPU schedstat nor CPU PSI supplied any
evidence. A present but incomplete Body series is retained for diagnostics
but cannot confirm a latency failure.
Fields§
§per_phase: PerPhaseSchedstatPer-lifecycle-phase host-dilation deltas (Boot..Teardown).
body_window: BodyContentionWindowBody-phase contention intervals for the W(L) bound.
Implementations§
Source§impl ContentionWitness
impl ContentionWitness
Sourcepub fn body_dilation(&self) -> Option<f64>
pub fn body_dilation(&self) -> Option<f64>
The Body-phase host dilation D (annotation for the latency verdict);
None when no Body on-CPU time was sampled.
Trait Implementations§
Source§impl Clone for ContentionWitness
impl Clone for ContentionWitness
Source§fn clone(&self) -> ContentionWitness
fn clone(&self) -> ContentionWitness
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContentionWitness
impl Debug for ContentionWitness
Source§impl Default for ContentionWitness
impl Default for ContentionWitness
Source§fn default() -> ContentionWitness
fn default() -> ContentionWitness
Source§impl<'de> Deserialize<'de> for ContentionWitness
impl<'de> Deserialize<'de> for ContentionWitness
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ContentionWitness
impl PartialEq for ContentionWitness
Source§impl Serialize for ContentionWitness
impl Serialize for ContentionWitness
impl StructuralPartialEq for ContentionWitness
Auto Trait Implementations§
impl Freeze for ContentionWitness
impl RefUnwindSafe for ContentionWitness
impl Send for ContentionWitness
impl Sync for ContentionWitness
impl Unpin for ContentionWitness
impl UnwindSafe for ContentionWitness
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more