pub struct SystemPerformanceStats {
pub total_operations: u64,
pub avg_operation_time_ms: f64,
pub cache_hits: u64,
pub cache_misses: u64,
pub cache_hit_ratio: f64,
pub memory_usage_mb: f64,
pub active_profiles: usize,
}Expand description
Performance statistics for the entire system.
Fields§
§total_operations: u64Total number of operations performed
avg_operation_time_ms: f64Average operation time in milliseconds
cache_hits: u64Number of cache hits
cache_misses: u64Number of cache misses
cache_hit_ratio: f64Cache hit ratio (0.0 to 1.0)
memory_usage_mb: f64Memory usage in MB
active_profiles: usizeNumber of active profiling sessions
Implementations§
Source§impl SystemPerformanceStats
impl SystemPerformanceStats
Sourcepub fn update_cache_stats(&mut self, hits: u64, misses: u64)
pub fn update_cache_stats(&mut self, hits: u64, misses: u64)
Update cache statistics.
Sourcepub fn update_operation_stats(&mut self, total_ops: u64, avg_time_ms: f64)
pub fn update_operation_stats(&mut self, total_ops: u64, avg_time_ms: f64)
Update operation statistics.
Sourcepub fn update_memory_usage(&mut self, usage_mb: f64)
pub fn update_memory_usage(&mut self, usage_mb: f64)
Update memory usage.
Sourcepub fn update_active_profiles(&mut self, count: usize)
pub fn update_active_profiles(&mut self, count: usize)
Update active profiles count.
Trait Implementations§
Source§impl Clone for SystemPerformanceStats
impl Clone for SystemPerformanceStats
Source§fn clone(&self) -> SystemPerformanceStats
fn clone(&self) -> SystemPerformanceStats
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 SystemPerformanceStats
impl Debug for SystemPerformanceStats
Auto Trait Implementations§
impl Freeze for SystemPerformanceStats
impl RefUnwindSafe for SystemPerformanceStats
impl Send for SystemPerformanceStats
impl Sync for SystemPerformanceStats
impl Unpin for SystemPerformanceStats
impl UnsafeUnpin for SystemPerformanceStats
impl UnwindSafe for SystemPerformanceStats
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