[][src]Struct procshot_server::PidStatus

pub struct PidStatus {
    pub ppid: i32,
    pub euid: i32,
    pub cmd_long: Vec<String>,
    pub name: String,
    pub cmd_short: String,
    pub tracerpid: i32,
    pub fdsize: u32,
    pub state: String,
    pub vmpeak: Option<u64>,
    pub vmsize: Option<u64>,
    pub rss_pages: i64,
    pub rss_bytes: i64,
    pub rsslim_bytes: u64,
    pub processor_last_executed: Option<i32>,
    pub utime: u64,
    pub stime: u64,
}

PidStatus is the struct that holds the data that we store for each process' status. In this crate, we create a Vec<HashMap<i32, PidStatus>> which is a mapping of pid to its status.

Fields

ppid: i32

Parent pid

euid: i32

Effective uid

cmd_long: Vec<String>

The complete path to cmd_long if available.

name: String

Command run by this process.

cmd_short: String

The filename of the executable, in parentheses.

This is visible whether or not the executable is swapped out.

tracerpid: i32

PID of process tracing this process (0 if not being traced).

fdsize: u32

Number of file descriptor slots currently allocated.

state: String

Current state of the process.

vmpeak: Option<u64>

Peak virtual memory size by kB.

vmsize: Option<u64>

Virtual memory size by kB.

rss_pages: i64

Resident Set Size: number of pages the process has in real memory.

This is just the pages which count toward text, data, or stack space. This does not include pages which have not been demand-loaded in, or which are swapped out.

rss_bytes: i64

Gets the Resident Set Size (in bytes)

rsslim_bytes: u64

Current soft limit in bytes on the rss of the process; see the description of RLIMIT_RSS in getrlimit(2).

processor_last_executed: Option<i32>

CPU number last executed on.

(since Linux 2.2.8)

utime: u64

(divide by [ticks_per_second()].

This includes guest time, guest_time (time spent running a virtual CPU, see below), so that applications that are not aware of the guest time field do not lose that time from their calculations.

stime: u64

Amount of time that this process has been scheduled in kernel mode, measured in clock ticks (divide by [ticks_per_second()]).

Trait Implementations

impl PartialEq<PidStatus> for PidStatus[src]

impl Debug for PidStatus[src]

impl Serialize for PidStatus[src]

impl<'de> Deserialize<'de> for PidStatus[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]