pub struct SystemMonitor { /* private fields */ }Implementations§
Source§impl SystemMonitor
impl SystemMonitor
pub fn global() -> &'static Self
pub fn shutdown()
pub fn is_running(&self) -> bool
pub fn cpu_usage(&self) -> f64
pub fn memory_available(&self) -> u64
pub fn memory_total(&self) -> u64
pub fn memory_used(&self) -> u64
pub fn memory_usage_percent(&self) -> f64
pub fn disk_read_bps(&self) -> u64
pub fn disk_write_bps(&self) -> u64
pub fn network_rx_bps(&self) -> u64
pub fn network_tx_bps(&self) -> u64
pub fn gpu_usage(&self) -> f64
pub fn gpu_memory_used(&self) -> u64
pub fn gpu_memory_total(&self) -> u64
pub fn gpu_memory_usage_percent(&self) -> f64
pub fn last_update(&self) -> u64
pub fn thread_count(&self) -> usize
pub fn correlation_analysis(&self) -> CorrelationAnalysis
pub fn performance_score(&self) -> PerformanceScore
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SystemMonitor
impl RefUnwindSafe for SystemMonitor
impl Send for SystemMonitor
impl Sync for SystemMonitor
impl Unpin for SystemMonitor
impl UnsafeUnpin for SystemMonitor
impl UnwindSafe for SystemMonitor
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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