pub struct ProcessWatchdog { /* private fields */ }Expand description
A plain OS thread that sleeps on a fixed period and reports when it wakes late.
Async tick lag cannot tell an overloaded executor from a process the OS is not scheduling. This thread touches no executor, so its lateness is the OS’s alone: when it matches the async lag, the whole process was held (App Nap, sleep, CPU starvation); when it stays punctual while tasks lag, the executor or a pool is the bottleneck. Dropping the handle stops the thread at its next wakeup.
Implementations§
Auto Trait Implementations§
impl Freeze for ProcessWatchdog
impl RefUnwindSafe for ProcessWatchdog
impl Send for ProcessWatchdog
impl Sync for ProcessWatchdog
impl Unpin for ProcessWatchdog
impl UnsafeUnpin for ProcessWatchdog
impl UnwindSafe for ProcessWatchdog
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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 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> ⓘ
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