pub struct ProfileMetrics {
pub total_executions: u64,
pub avg_execution_time: Duration,
pub execution_time_variance: f64,
pub optimal_thread_count: usize,
pub anomalies: Vec<PerformanceAnomaly>,
}
Expand description
Profile metrics for performance analysis
Fields§
§total_executions: u64
Total executions recorded
avg_execution_time: Duration
Average execution time
execution_time_variance: f64
Execution time variance
optimal_thread_count: usize
Optimal thread count
anomalies: Vec<PerformanceAnomaly>
Performance anomalies
Implementations§
Source§impl ProfileMetrics
impl ProfileMetrics
Sourcepub fn record_execution(&mut self, execution_time: Duration, threadcount: usize)
pub fn record_execution(&mut self, execution_time: Duration, threadcount: usize)
Record an execution
Sourcepub fn record_anomaly(&mut self, anomaly: PerformanceAnomaly)
pub fn record_anomaly(&mut self, anomaly: PerformanceAnomaly)
Record a performance anomaly
Trait Implementations§
Source§impl Debug for ProfileMetrics
impl Debug for ProfileMetrics
Auto Trait Implementations§
impl Freeze for ProfileMetrics
impl RefUnwindSafe for ProfileMetrics
impl Send for ProfileMetrics
impl Sync for ProfileMetrics
impl Unpin for ProfileMetrics
impl UnwindSafe for ProfileMetrics
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> 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