pub struct Snapshot {Show 17 fields
pub rows: Vec<ProcRow>,
pub pss: HashMap<u32, PssInfo>,
pub mem: MemInfo,
pub pressure: Pressure,
pub scan_seq: u64,
pub cgroups: Vec<CgroupMem>,
pub pid_cgroup: Arc<HashMap<u32, String>>,
pub pid_exe: Arc<HashMap<u32, String>>,
pub detail: Option<Detail>,
pub detail_error: Option<String>,
pub sweep_ms: f32,
pub pss_ms: f32,
pub covered_pss_kb: u64,
pub covered: usize,
pub denied: HashSet<u32>,
pub no_mm: HashSet<u32>,
pub at: Instant,
}Fields§
§rows: Vec<ProcRow>§pss: HashMap<u32, PssInfo>Only pids the sampler has spent page-table-walk budget on.
mem: MemInfo§pressure: PressureSystem-wide PSI for memory (/proc/pressure/memory), read every tick.
scan_seq: u64Increments on every slow scan (cgroups/pid map). The UI uses it to avoid pushing the same 5 s sample 5 times at 1 Hz.
cgroups: Vec<CgroupMem>cgroup v2 memory accounting (empty on v1 or when unreadable).
pid_cgroup: Arc<HashMap<u32, String>>pid -> cgroup path, refreshed on the slow cadence; Arc so the per-tick snapshot clone stays cheap.
pid_exe: Arc<HashMap<u32, String>>pid -> executable path, same cadence.
detail: Option<Detail>§detail_error: Option<String>Why the detail view is empty (usually EACCES on a process we don’t own).
sweep_ms: f32§pss_ms: f32§covered_pss_kb: u64Sum of PSS for entries younger than PSS_MAX_AGE, and how many that is.
covered: usize§denied: HashSet<u32>Pids whose smaps_rollup needs privileges (EACCES). sudo fixes these.
no_mm: HashSet<u32>Pids with no address space (kernel threads) - no privilege will help.
at: InstantTrait Implementations§
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more