pub struct AggregatedMetrics {Show 13 fields
pub avg_execution_time: f64,
pub avg_throughput: f64,
pub avg_memory_usage: f64,
pub avg_cache_hit_ratio: f64,
pub avg_error_rate: f64,
pub avg_cpu_utilization: f64,
pub avg_gpu_utilization: f64,
pub peak_throughput: f64,
pub min_execution_time: f64,
pub max_execution_time: f64,
pub total_operations: usize,
pub efficiency_score: f64,
pub sample_count: usize,
}
Expand description
Aggregated performance metrics
Fields§
§avg_execution_time: f64
§avg_throughput: f64
§avg_memory_usage: f64
§avg_cache_hit_ratio: f64
§avg_error_rate: f64
§avg_cpu_utilization: f64
§avg_gpu_utilization: f64
§peak_throughput: f64
§min_execution_time: f64
§max_execution_time: f64
§total_operations: usize
§efficiency_score: f64
§sample_count: usize
Implementations§
Source§impl AggregatedMetrics
impl AggregatedMetrics
Sourcepub fn update_with_sample(&mut self, sample: &PerformanceSample)
pub fn update_with_sample(&mut self, sample: &PerformanceSample)
Update aggregated metrics with a new sample
Sourcepub fn execution_time_variance(&self, samples: &[PerformanceSample]) -> f64
pub fn execution_time_variance(&self, samples: &[PerformanceSample]) -> f64
Get performance variance for execution time
Sourcepub fn stability_score(&self, samples: &[PerformanceSample]) -> f64
pub fn stability_score(&self, samples: &[PerformanceSample]) -> f64
Get performance stability score (lower variance = higher stability)
Trait Implementations§
Source§impl Clone for AggregatedMetrics
impl Clone for AggregatedMetrics
Source§fn clone(&self) -> AggregatedMetrics
fn clone(&self) -> AggregatedMetrics
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 AggregatedMetrics
impl Debug for AggregatedMetrics
Source§impl Default for AggregatedMetrics
impl Default for AggregatedMetrics
Source§fn default() -> AggregatedMetrics
fn default() -> AggregatedMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AggregatedMetrics
impl RefUnwindSafe for AggregatedMetrics
impl Send for AggregatedMetrics
impl Sync for AggregatedMetrics
impl Unpin for AggregatedMetrics
impl UnwindSafe for AggregatedMetrics
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