pub struct AdvancedPerformanceStats {
pub thread_pool_stats: ThreadPoolStats,
pub memory_metrics: MemoryMetrics,
pub resource_patterns: HashMap<OperationType, ResourceUsagePattern>,
pub performance_trends: HashMap<OperationType, Vec<f64>>,
pub max_task_duration: Duration,
pub min_task_duration: Duration,
pub average_throughput_ops_per_sec: f64,
}
Expand description
Comprehensive performance statistics
Fields§
§thread_pool_stats: ThreadPoolStats
Basic thread pool statistics
memory_metrics: MemoryMetrics
Memory usage metrics
resource_patterns: HashMap<OperationType, ResourceUsagePattern>
Resource usage patterns
performance_trends: HashMap<OperationType, Vec<f64>>
Performance trends
max_task_duration: Duration
Maximum task duration
min_task_duration: Duration
Minimum task duration
average_throughput_ops_per_sec: f64
Average throughput in operations per second
Implementations§
Source§impl AdvancedPerformanceStats
impl AdvancedPerformanceStats
Sourcepub fn record_execution(
&mut self,
operation_type: OperationType,
executiontime: Duration,
)
pub fn record_execution( &mut self, operation_type: OperationType, executiontime: Duration, )
Record execution performance
Trait Implementations§
Source§impl Clone for AdvancedPerformanceStats
impl Clone for AdvancedPerformanceStats
Source§fn clone(&self) -> AdvancedPerformanceStats
fn clone(&self) -> AdvancedPerformanceStats
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 AdvancedPerformanceStats
impl Debug for AdvancedPerformanceStats
Auto Trait Implementations§
impl Freeze for AdvancedPerformanceStats
impl RefUnwindSafe for AdvancedPerformanceStats
impl Send for AdvancedPerformanceStats
impl Sync for AdvancedPerformanceStats
impl Unpin for AdvancedPerformanceStats
impl UnwindSafe for AdvancedPerformanceStats
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