pub struct SystemResourceUsage {
pub total_threads: AtomicU64,
pub total_memory_usage: AtomicU64,
pub total_cpu_time_ns: AtomicU64,
pub total_open_files: AtomicU64,
pub total_network_connections: AtomicU64,
pub system_start_time: Instant,
}
Expand description
System-wide resource usage tracking.
Fields§
§total_threads: AtomicU64
Total active threads
total_memory_usage: AtomicU64
Total memory usage across all threads
total_cpu_time_ns: AtomicU64
Total CPU time across all threads
total_open_files: AtomicU64
Total file descriptors open
total_network_connections: AtomicU64
Total network connections
system_start_time: Instant
System start time for CPU time calculations
Implementations§
Auto Trait Implementations§
impl !Freeze for SystemResourceUsage
impl RefUnwindSafe for SystemResourceUsage
impl Send for SystemResourceUsage
impl Sync for SystemResourceUsage
impl Unpin for SystemResourceUsage
impl UnwindSafe for SystemResourceUsage
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