[−][src]Struct procshot_server::PidStatus
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()
]).
user_cpu_usage: f64
Holds the user CPU usage by that process.
sys_cpu_usage: f64
Holds the sys CPU usage by that process.
Trait Implementations
impl Clone for PidStatus
[src]
impl PartialEq<PidStatus> for PidStatus
[src]
impl Debug for PidStatus
[src]
impl Serialize for PidStatus
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for PidStatus
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for PidStatus
impl Sync for PidStatus
impl Unpin for PidStatus
impl UnwindSafe for PidStatus
impl RefUnwindSafe for PidStatus
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,