pub struct ProfileStats {
pub name: String,
pub count: usize,
pub total_duration_ms: u64,
pub avg_duration_ms: f64,
pub min_duration_ms: u64,
pub max_duration_ms: u64,
pub std_dev_ms: f64,
pub p50_ms: u64,
pub p95_ms: u64,
pub p99_ms: u64,
}Expand description
Profiling statistics for an operation
Fields§
§name: StringOperation name
count: usizeNumber of calls
total_duration_ms: u64Total duration
avg_duration_ms: f64Average duration
min_duration_ms: u64Minimum duration
max_duration_ms: u64Maximum duration
std_dev_ms: f64Standard deviation
p50_ms: u6450th percentile (median)
p95_ms: u6495th percentile
p99_ms: u6499th percentile
Trait Implementations§
Source§impl Clone for ProfileStats
impl Clone for ProfileStats
Source§fn clone(&self) -> ProfileStats
fn clone(&self) -> ProfileStats
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 ProfileStats
impl Debug for ProfileStats
Source§impl<'de> Deserialize<'de> for ProfileStats
impl<'de> Deserialize<'de> for ProfileStats
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
Auto Trait Implementations§
impl Freeze for ProfileStats
impl RefUnwindSafe for ProfileStats
impl Send for ProfileStats
impl Sync for ProfileStats
impl Unpin for ProfileStats
impl UnsafeUnpin for ProfileStats
impl UnwindSafe for ProfileStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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