pub struct ProcSnapshot {
pub at: Instant,
pub uptime_s: f64,
pub procs: BTreeMap<u32, ProcInfo>,
}Fields§
§at: Instant§uptime_s: f64§procs: BTreeMap<u32, ProcInfo>Implementations§
Source§impl ProcSnapshot
impl ProcSnapshot
pub fn collect() -> Result<Self>
pub fn children_by_ppid(&self) -> HashMap<u32, Vec<u32>>
pub fn process_family(&self, root: u32) -> Vec<u32>
pub fn seeds_for_all(&self) -> Vec<PidSeed>
pub fn seeds_for_pid_family(&self, root: u32) -> Vec<PidSeed>
pub fn seeds_for_session(&self, session_id: u32) -> Vec<PidSeed>
pub fn pids_in_session(&self, session_id: u32) -> Vec<u32>
Trait Implementations§
Source§impl Clone for ProcSnapshot
impl Clone for ProcSnapshot
Source§fn clone(&self) -> ProcSnapshot
fn clone(&self) -> ProcSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcSnapshot
impl Debug for ProcSnapshot
Auto Trait Implementations§
impl Freeze for ProcSnapshot
impl RefUnwindSafe for ProcSnapshot
impl Send for ProcSnapshot
impl Sync for ProcSnapshot
impl Unpin for ProcSnapshot
impl UnsafeUnpin for ProcSnapshot
impl UnwindSafe for ProcSnapshot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more