pub struct StageStats {
pub name: &'static str,
pub mean_us: f64,
pub var_us2: f64,
}Expand description
Service time statistics for a single pipeline stage.
Fields§
§name: &'static strStage name.
mean_us: f64Mean service time (µs).
var_us2: f64Variance of service time (µs²).
Implementations§
Source§impl StageStats
impl StageStats
Sourcepub fn second_moment(&self) -> f64
pub fn second_moment(&self) -> f64
Second moment E[S²] = Var[S] + E[S]².
Trait Implementations§
Source§impl Clone for StageStats
impl Clone for StageStats
Source§fn clone(&self) -> StageStats
fn clone(&self) -> StageStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StageStats
impl Debug for StageStats
impl Copy for StageStats
Auto Trait Implementations§
impl Freeze for StageStats
impl RefUnwindSafe for StageStats
impl Send for StageStats
impl Sync for StageStats
impl Unpin for StageStats
impl UnsafeUnpin for StageStats
impl UnwindSafe for StageStats
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