pub struct ClockStats {
pub average_busy_dt: Duration,
pub average_tps: f64,
pub median_tps: f64,
pub percentile_90_tps: f64,
pub percentile_95_tps: f64,
pub percentile_99_tps: f64,
}Fields§
§average_busy_dt: DurationBusy dt is the part of the tick that we didn’t sleep. e.g. the total tick is 33ms, including 25ms sleeping. then this returns 8ms This is in seconds
average_tps: f64avg over the last NUMBER_OF_OLD_DELTAS_KEPT ticks
median_tps: f64= 50% percentile
percentile_90_tps: f64lowest 10% of the frames
percentile_95_tps: f64lowest 5% of the frames
percentile_99_tps: f64lowest 1% of the frames
Implementations§
Auto Trait Implementations§
impl Freeze for ClockStats
impl RefUnwindSafe for ClockStats
impl Send for ClockStats
impl Sync for ClockStats
impl Unpin for ClockStats
impl UnwindSafe for ClockStats
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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