Struct procfs::CpuTime [−][src]
The amount of time, measured in seconds, the CPU has been in specific states
Fields
user: f32
Seconds spent in user mode
nice: f32
Seconds spent in user mode with low priority (nice)
system: f32
Seconds spent in system mode
idle: f32
Seconds spent in the idle tast
iowait: Option<f32>
Seconds waiting for I/O to complete
This value is not reliaable, for the following reasons:
-
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.
-
On a multi-core CPU, this task waiting for I/O to complete is not running on any CPU, so the iowait for each CPU is difficult to calculate.
-
The value in this field may decrease in certain conditions.
(Since Linux 2.5.41)
irq: Option<f32>
Seconds servicing interrupts
(Since Linux 2.6.0)
softirq: Option<f32>
Seconds servicing softirqs
(Since Linux 2.6.0)
steal: Option<f32>
Seconds of stolen time.
Stolen time is the time spent in other operating systems when running in a virtualized environemnt.
(Since Linux 2.6.11)
guest: Option<f32>
Seconds spent running a virtual CPU for guest operating systems under control of the linux kernel
(Since Linux 2.6.24)
guest_nice: Option<f32>
Seconds spent running a niced guest
(Since Linux 2.6.33)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CpuTime
impl Send for CpuTime
impl Sync for CpuTime
impl Unpin for CpuTime
impl UnwindSafe for CpuTime
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>,