[][src]Trait heim_cpu::os::linux::CpuTimeExt

pub trait CpuTimeExt {
    pub fn nice(&self) -> Time;
pub fn io_wait(&self) -> Time;
pub fn irq(&self) -> Time;
pub fn soft_irq(&self) -> Time;
pub fn steal(&self) -> Time;
pub fn guest(&self) -> Option<Time>;
pub fn guest_nice(&self) -> Option<Time>; }
This is supported on Linux only.

Linux-specific extension for CpuTime.

Required methods

pub fn nice(&self) -> Time[src]

Returns time spent by niced (prioritized) processes executing in user mode, this also includes guest_nice time.

pub fn io_wait(&self) -> Time[src]

Returns time spent waiting for I/O to complete.

pub fn irq(&self) -> Time[src]

Returns time spent for servicing hardware interrupts.

pub fn soft_irq(&self) -> Time[src]

Returns time spent for servicing software interrupts.

pub fn steal(&self) -> Time[src]

Returns time spent by other operating systems running in a virtualized environment.

pub fn guest(&self) -> Option<Time>[src]

Returns time spent running a virtual CPU for guest operating systems under the control of the Linux kernel.

Compatibility

Available for Linux 2.6.24+, older versions always returns None.

pub fn guest_nice(&self) -> Option<Time>[src]

Returns time spent running a niced guest (virtual CPU for guest operating systems under the control of the Linux kernel)

Compatibility

Available for Linux 3.2.0+, older versions always returns None.

Loading content...

Implementors

impl CpuTimeExt for CpuTime[src]

Loading content...