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;
windowandpeak_windoware the counts of the current and peak sliding windows of the global exit-rate meter, one slot perrun_vcpuinvocation (one time slice);- percentiles are conservative upper bounds of logarithmic buckets, never
lower than the exact percentile (see the
timingmodule).
Fields§
§exits: u64Number of exits recorded since the world was created.
mean_cycles: u64Mean latency of every recorded exit, in cycles (0 when exits == 0).
p95_cycles: u6495th percentile upper bound of every recorded exit, in cycles.
min_cycles: u64Smallest recorded exit latency, in cycles (0 when exits == 0).
max_cycles: u64Largest recorded exit latency, in cycles (0 when exits == 0).
handler_samples: u64Number of in-kernel device-model replays measured.
handler_mean_cycles: u64Mean device-model replay latency, in cycles (0 when no sample).
handler_p95_cycles: u6495th 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: u64Exits recorded in the current sliding window (all classes).
peak_window: u64Highest sliding-window value observed (all classes).
Trait Implementations§
Source§impl Clone for WorldTimingSnapshot
impl Clone for WorldTimingSnapshot
impl Copy for WorldTimingSnapshot
Source§impl Debug for WorldTimingSnapshot
impl Debug for WorldTimingSnapshot
Source§impl Default for WorldTimingSnapshot
impl Default for WorldTimingSnapshot
impl Eq for WorldTimingSnapshot
Source§impl PartialEq for WorldTimingSnapshot
impl PartialEq for WorldTimingSnapshot
impl StructuralPartialEq for WorldTimingSnapshot
Auto Trait Implementations§
impl Forget for WorldTimingSnapshot
impl Freeze for WorldTimingSnapshot
impl Move for WorldTimingSnapshot
impl RefUnwindSafe for WorldTimingSnapshot
impl Send for WorldTimingSnapshot
impl Sync for WorldTimingSnapshot
impl Unpin for WorldTimingSnapshot
impl UnsafeUnpin for WorldTimingSnapshot
impl UnwindSafe for WorldTimingSnapshot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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