Skip to main content

Group

Struct Group 

Source
pub struct Group {
Show 28 fields pub id: String, pub kind: GroupKind, pub label: String, pub fingerprint: String, pub root: Option<ProcId>, pub members: Vec<Member>, pub totals: GroupTotals, pub reclaim_gain: Measured<Bytes>, pub swap_gain: Measured<Bytes>, pub confidence: Confidence, pub owner_group: Option<String>, pub orphan: bool, pub idle: bool, pub idle_for_s: Option<u64>, pub protected: bool, pub is_self: bool, pub lower_bound: bool, pub configured_mem: Option<Bytes>, pub matched_by: Option<String>, pub age_s: Measured<u64>, pub cpu_time_s: Measured<f64>, pub duty_pct: Measured<f64>, pub longest_idle_s: Option<u64>, pub longest_idle: Option<ProcId>, pub idle_rent_gib_h: Measured<f64>, pub staleness: Staleness, pub project: Option<String>, pub cohort: Option<String>,
}

Fields§

§id: String

Unique within a snapshot and stable across samples for the same root, e.g. “agent:3f2a9c01”.

§kind: GroupKind§label: String§fingerprint: String

Entity fingerprint (UX §4), hex.

§root: Option<ProcId>§members: Vec<Member>§totals: GroupTotals§reclaim_gain: Measured<Bytes>

RAM freed if stopped (SPEC §8.1); always Estimate.

§swap_gain: Measured<Bytes>

Swap freed if stopped, reported separately (SPEC §8.1).

§confidence: Confidence§owner_group: Option<String>

Group that started/owns this one (e.g. sandbox started by an agent session).

§orphan: bool§idle: bool§idle_for_s: Option<u64>§protected: bool

Protected groups are never offered for actions (SPEC §13).

§is_self: bool

oomtop’s own processes.

§lower_bound: bool

Footprint is a lower bound (Virtualization.framework VMs, SPEC §5).

§configured_mem: Option<Bytes>

Configured VM memory for sandbox groups.

§matched_by: Option<String>

Rule/adapter that defined this group, for “why” explanations.

§age_s: Measured<u64>

Age of the root process, else of the oldest member (the source says which), seconds.

§cpu_time_s: Measured<f64>

Σ CPU time of the live members, seconds.

§duty_pct: Measured<f64>

Duty cycle: cpu_time_s ÷ age_s, percent of one core.

§longest_idle_s: Option<u64>

Idle time of the longest-idle member (idle_for_s is the shortest: the whole group’s).

§longest_idle: Option<ProcId>

The longest-idle member.

§idle_rent_gib_h: Measured<f64>

Idle rent: Σ GiB-hours held by idle members; always an estimate.

§staleness: Staleness

Staleness score (0..1) and the ordered evidence behind it.

§project: Option<String>

Project directory of the root, else the most common among the members.

§cohort: Option<String>

Id of the crate::staleness::Cohort this group belongs to: the agent session that left it has ended.

Trait Implementations§

Source§

impl Clone for Group

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Group

Source§

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

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

impl Default for Group

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for Group
where Group: Default,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Group

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Group

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Group

Auto Trait Implementations§

§

impl Forget for Group

§

impl Freeze for Group

§

impl Move for Group

§

impl RefUnwindSafe for Group

§

impl Send for Group
where RawVecInner: Send,

§

impl Sync for Group
where RawVecInner: Sync,

§

impl Unpin for Group
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for Group

§

impl UnwindSafe for Group
where RawVecInner: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

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

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where 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

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.