pub struct FunctionStats {
pub name: String,
pub count: u64,
pub total_duration: Duration,
pub min_duration: Duration,
pub max_duration: Duration,
}Expand description
Statistics for a single function.
Fields§
§name: StringFunction name
count: u64Number of calls
total_duration: DurationTotal execution time
min_duration: DurationMinimum execution time
max_duration: DurationMaximum execution time
Implementations§
Source§impl FunctionStats
impl FunctionStats
Sourcepub fn average_duration(&self) -> Duration
pub fn average_duration(&self) -> Duration
Get average execution time.
Trait Implementations§
Source§impl Clone for FunctionStats
impl Clone for FunctionStats
Source§fn clone(&self) -> FunctionStats
fn clone(&self) -> FunctionStats
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 moreAuto Trait Implementations§
impl Freeze for FunctionStats
impl RefUnwindSafe for FunctionStats
impl Send for FunctionStats
impl Sync for FunctionStats
impl Unpin for FunctionStats
impl UnsafeUnpin 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