pub struct SystemPerformance { /* private fields */ }Expand description
System-wide performance metrics
Implementations§
Source§impl SystemPerformance
impl SystemPerformance
Sourcepub fn record_message_processed(&self, processing_time: Duration)
pub fn record_message_processed(&self, processing_time: Duration)
Record a message processing operation
Sourcepub fn record_error(&self)
pub fn record_error(&self)
Record an error
Sourcepub fn update_memory_usage(&self, usage_bytes: u64)
pub fn update_memory_usage(&self, usage_bytes: u64)
Update memory usage
Sourcepub fn update_thread_utilization(&self, utilization_percent: u64)
pub fn update_thread_utilization(&self, utilization_percent: u64)
Update thread utilization
Sourcepub fn get_statistics(&self) -> SystemStatistics
pub fn get_statistics(&self) -> SystemStatistics
Get current performance statistics
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SystemPerformance
impl RefUnwindSafe for SystemPerformance
impl Send for SystemPerformance
impl Sync for SystemPerformance
impl Unpin for SystemPerformance
impl UnwindSafe for SystemPerformance
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