Struct procinfo::pid::Cpu [−][src]
Fields
cpuid: Stringsystem (“cpu” line) or the specific CPU (“cpuN” line) spent in various states
user: usizeTime spent in user mode.
nice: usizeTime spent in user mode with low priority (nice).
system: usizeTime spent in system mode.
idle: usizeTime spent in the idle task. This value should be USER_HZ times the second entry in the /proc/uptime pseudo-file.
iowait: usizeTime waiting for I/O to complete. This value is not reliable, for the following rea‐ sons:
1. The CPU will not wait for I/O to complete;
iowait is the time that a task is waiting for
I/O to complete. When a CPU goes into idle
state for outstanding task I/O, another task
will be scheduled on this CPU.
2. On a multi-core CPU, the task waiting for I/O
to complete is not running on any CPU, so the
iowait of each CPU is difficult to calculate.
3. The value in this field may decrease in cer‐
tain conditions.irq: usizeTime servicing interrupts.
softirq: usizeTime servicing softirqs.
steal: usizeStolen time, which is the time spent in other operating systems when running in a virtu‐alized environment
guest: usizeTime spent running a virtual CPU for guest operating systems under the control of the Linux kernel
guest_nice: usizeTime spent running a niced guest (virtual CPU for guest operating systems under the control of the Linux kernel)
Trait Implementations
impl Debug for Cpu[src]
impl Eq for Cpu[src]
impl Hash for Cpu[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<Cpu> for Cpu[src]
impl StructuralEq for Cpu[src]
impl StructuralPartialEq for Cpu[src]
Auto Trait Implementations
impl RefUnwindSafe for Cpu
impl Send for Cpu
impl Sync for Cpu
impl Unpin for Cpu
impl UnwindSafe for Cpu
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,