pub struct CpuAcctStats {
pub user_usage: u64,
pub system_usage: u64,
pub total_usage: u64,
pub usage_percpu: Vec<u64>,
}Fields§
§user_usage: u64Usage in userspace, read from cpuacct.stat from the line starting
with user. Set 0 if no data.
system_usage: u64Usage in kernelspace, read from cpuacct.stat from the line
starting with system. Set 0 if no data.
total_usage: u64Total usage, read from cpuacct.usage. Set 0 if no data.
usage_percpu: Vec<u64>Per-CPU usage, read from cpuacct.usage_percpu.
Trait Implementations§
Source§impl Debug for CpuAcctStats
impl Debug for CpuAcctStats
Source§impl Default for CpuAcctStats
impl Default for CpuAcctStats
Source§fn default() -> CpuAcctStats
fn default() -> CpuAcctStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CpuAcctStats
impl RefUnwindSafe for CpuAcctStats
impl Send for CpuAcctStats
impl Sync for CpuAcctStats
impl Unpin for CpuAcctStats
impl UnwindSafe for CpuAcctStats
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