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§shared: usize

RssFile + RssShmem (resident shared size)

§rss_anon: usize

VmRSS - RssFile - RssShmem = RssAnon (resident anonymous memory, process occupied memory)

Trait Implementations§

source§

impl Clone for ProcessStat

source§

fn clone(&self) -> ProcessStat

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ProcessStat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ProcessStat

source§

fn default() -> ProcessStat

Returns the “default value” for a type. Read more
source§

impl From<ProcessStat> for ProcessTimeStat

source§

fn from(process_stat: ProcessStat) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.