Struct mprober_lib::process::ProcessStat
source · pub struct ProcessStat {Show 23 fields
pub state: ProcessState,
pub comm: String,
pub ppid: u32,
pub pgrp: u32,
pub session: u32,
pub tty_nr_major: u8,
pub tty_nr_minor: u32,
pub tpgid: Option<u32>,
pub utime: u32,
pub stime: u32,
pub cutime: u32,
pub cstime: u32,
pub priority: i8,
pub nice: i8,
pub num_threads: usize,
pub starttime: u64,
pub vsize: usize,
pub rss: usize,
pub rsslim: usize,
pub processor: usize,
pub rt_priority: u8,
pub shared: usize,
pub rss_anon: usize,
}Fields
state: ProcessStatecomm: Stringppid: u32pgrp: u32session: u32tty_nr_major: u8tty_nr_minor: u32tpgid: Option<u32>utime: u32stime: u32cutime: u32cstime: u32priority: i8nice: i8num_threads: usizestarttime: u64vsize: usizesize, VmSize (total program size)
rss: usizeresident, VmRSS (resident set size)
rsslim: usizeprocessor: usizert_priority: u8RssFile + RssShmem (resident shared size)
rss_anon: usizeVmRSS - RssFile - RssShmem = RssAnon (resident anonymous memory, process occupied memory)
Trait Implementations
sourceimpl Clone for ProcessStat
impl Clone for ProcessStat
sourcefn clone(&self) -> ProcessStat
fn clone(&self) -> ProcessStat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ProcessStat
impl Debug for ProcessStat
sourceimpl Default for ProcessStat
impl Default for ProcessStat
sourcefn default() -> ProcessStat
fn default() -> ProcessStat
Returns the “default value” for a type. Read more
sourceimpl From<ProcessStat> for ProcessTimeStat
impl From<ProcessStat> for ProcessTimeStat
sourcefn from(process_stat: ProcessStat) -> Self
fn from(process_stat: ProcessStat) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for ProcessStat
impl Send for ProcessStat
impl Sync for ProcessStat
impl Unpin for ProcessStat
impl UnwindSafe for ProcessStat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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