Skip to main content

WorldTimingSnapshot

Struct WorldTimingSnapshot 

Source
pub struct WorldTimingSnapshot {
    pub exits: u64,
    pub mean_cycles: u64,
    pub p95_cycles: u64,
    pub min_cycles: u64,
    pub max_cycles: u64,
    pub handler_samples: u64,
    pub handler_mean_cycles: u64,
    pub handler_p95_cycles: u64,
    pub per_class: [u64; 23],
    pub window: u64,
    pub peak_window: u64,
}
Expand description

Compact, Copy view of a world’s cumulative timing aggregates.

Produced by the read-only timing() accessor. Latencies are expressed in time-stamp counter cycles, as measured on the CPU that ran the vCPU; no conversion to nanoseconds is done here, because the time-stamp counter frequency is a property of the host and must be supplied by the reader.

Semantics:

  • the histogram is cumulative for the lifetime of the world;
  • window and peak_window are the counts of the current and peak sliding windows of the global exit-rate meter, one slot per run_vcpu invocation (one time slice);
  • percentiles are conservative upper bounds of logarithmic buckets, never lower than the exact percentile (see the timing module).

Fields§

§exits: u64

Number of exits recorded since the world was created.

§mean_cycles: u64

Mean latency of every recorded exit, in cycles (0 when exits == 0).

§p95_cycles: u64

95th percentile upper bound of every recorded exit, in cycles.

§min_cycles: u64

Smallest recorded exit latency, in cycles (0 when exits == 0).

§max_cycles: u64

Largest recorded exit latency, in cycles (0 when exits == 0).

§handler_samples: u64

Number of in-kernel device-model replays measured.

§handler_mean_cycles: u64

Mean device-model replay latency, in cycles (0 when no sample).

§handler_p95_cycles: u64

95th percentile upper bound of the device-model replay latency.

§per_class: [u64; 23]

Cumulative number of exits per class, indexed by WorldTiming::class_index (always TIMING_CLASS_COUNT entries).

§window: u64

Exits recorded in the current sliding window (all classes).

§peak_window: u64

Highest sliding-window value observed (all classes).

Trait Implementations§

Source§

impl Clone for WorldTimingSnapshot

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for WorldTimingSnapshot

Source§

impl Debug for WorldTimingSnapshot

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for WorldTimingSnapshot

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for WorldTimingSnapshot

Source§

impl PartialEq for WorldTimingSnapshot

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for WorldTimingSnapshot

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.