pub struct FunctionStats {
pub total_duration_ns: u64,
pub count: u64,
pub has_data: bool,
/* private fields */
}Fields§
§total_duration_ns: u64§count: u64§has_data: boolImplementations§
Source§impl FunctionStats
impl FunctionStats
pub fn new_duration(first_ns: u64) -> Self
pub fn update_duration(&mut self, duration_ns: u64)
pub fn avg_duration_ns(&self) -> u64
pub fn percentile(&self, p: f64) -> Duration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FunctionStats
impl RefUnwindSafe for FunctionStats
impl Send for FunctionStats
impl Sync for FunctionStats
impl Unpin for FunctionStats
impl UnwindSafe for FunctionStats
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