Expand description
Provides scheduler statistics of the process, based on the /proc/<pid>/schedstat
file.
Fields
sum_exec_runtime: u64
Time spent on the cpu.
Measured in nanoseconds.
run_delay: u64
Time spent waiting on a runqueue.
Measured in nanoseconds.
pcount: u64
# of timeslices run on this cpu.
Implementations
sourceimpl Schedstat
impl Schedstat
pub fn from_reader<R: Read>(r: R) -> ProcResult<Schedstat>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Schedstat
impl Send for Schedstat
impl Sync for Schedstat
impl Unpin for Schedstat
impl UnwindSafe for Schedstat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more