pub struct WakeStats {
pub frames: u64,
pub frames_by: BTreeMap<String, u64>,
pub requests_by: BTreeMap<String, u64>,
}Expand description
Counters since start (cumulative: diff two readings to measure an interval). Serialized as
{"frames": n, "frames_by": {reason: n}, "requests_by": {reason: n}} with the reasons that
have counts.
Fields§
§frames: u64Frames run, in total.
frames_by: BTreeMap<String, u64>Frames credited to each reason (a frame can have several).
requests_by: BTreeMap<String, u64>Wake requests per reason.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WakeStats
impl<'de> Deserialize<'de> for WakeStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WakeStats
impl StructuralPartialEq for WakeStats
Auto Trait Implementations§
impl Forget for WakeStats
impl Freeze for WakeStats
impl Move for WakeStats
impl RefUnwindSafe for WakeStats
impl Send for WakeStats
impl Sync for WakeStats
impl Unpin for WakeStats
impl UnsafeUnpin for WakeStats
impl UnwindSafe for WakeStats
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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