pub struct Window {
pub start: Instant,
pub end: Instant,
pub gain_ns: u64,
pub gapped: bool,
}Expand description
How much work one window between two complete snapshots showed.
Fields§
§start: Instant§end: Instant§gain_ns: u64§gapped: boolOne or more partial snapshots fell inside this window. Work done by a child born and reaped during the gap is missed, so a gapped window may count as busy but never as measured idle (ADR-0009).
Implementations§
Trait Implementations§
impl Copy for Window
impl Eq for Window
impl StructuralPartialEq for Window
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnsafeUnpin for Window
impl UnwindSafe for Window
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