pub struct Schedstat {
pub sum_exec_runtime: u64,
pub run_delay: u64,
pub pcount: u64,
}
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.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Schedstat
impl<'de> Deserialize<'de> for Schedstat
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Schedstat
impl RefUnwindSafe for Schedstat
impl Send for Schedstat
impl Sync for Schedstat
impl Unpin for Schedstat
impl UnwindSafe for Schedstat
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)