#[non_exhaustive]pub struct LatencyMetrics {
pub interval: Duration,
pub last: Duration,
pub histogram: Histogram,
pub last_sample: Option<Instant>,
pub stalls: u64,
pub stall_duration: Duration,
pub stalled: bool,
}Expand description
Snapshot of an arbiter’s scheduling latency.
The arbiter runs a task that sleeps for interval and records how late it
wakes up. Lateness includes the time the runtime spent running other tasks
and handling driver events, and the timer’s own wake-up latency.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.interval: DurationSampling interval.
last: DurationLateness of the most recent sample.
histogram: HistogramLateness of all samples.
last_sample: Option<Instant>Time of the most recent sample, None if no sample has been recorded.
A time much older than interval means the arbiter is blocked.
stalls: u64Number of stalls detected by the watchdog.
An arbiter is stalled when it has not recorded a sample for longer
than interval plus the
ping_threshold.
stall_duration: DurationTotal duration of finished stalls.
stalled: boolWhether the arbiter is currently stalled.
Trait Implementations§
Source§impl Clone for LatencyMetrics
impl Clone for LatencyMetrics
impl Copy for LatencyMetrics
Source§impl Debug for LatencyMetrics
impl Debug for LatencyMetrics
impl Eq for LatencyMetrics
Source§impl PartialEq for LatencyMetrics
impl PartialEq for LatencyMetrics
impl StructuralPartialEq for LatencyMetrics
Auto Trait Implementations§
impl Freeze for LatencyMetrics
impl RefUnwindSafe for LatencyMetrics
impl Send for LatencyMetrics
impl Sync for LatencyMetrics
impl Unpin for LatencyMetrics
impl UnsafeUnpin for LatencyMetrics
impl UnwindSafe for LatencyMetrics
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