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: ProcessState
comm: String
ppid: u32
pgrp: u32
session: u32
tty_nr_major: u8
tty_nr_minor: u32
tpgid: Option<u32>
utime: u32
stime: u32
cutime: u32
cstime: u32
priority: i8
nice: i8
num_threads: usize
starttime: u64
vsize: usize
size, VmSize (total program size)
rss: usize
resident, VmRSS (resident set size)
rsslim: usize
processor: usize
rt_priority: u8
RssFile + RssShmem (resident shared size)
rss_anon: usize
VmRSS - 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 more
sourceimpl 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 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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more