pub struct Sample {Show 19 fields
pub process_id: String,
pub step_s: u32,
pub at: Timestamp,
pub roles: BTreeMap<String, String>,
pub resident_avg: u64,
pub resident_peak: u64,
pub memory_avg: u64,
pub memory_peak: u64,
pub minutes: u32,
pub cpu_minutes: u32,
pub container_minutes: u32,
pub covered: u32,
pub cpu_seconds: Option<f64>,
pub cpu_avg: Option<f64>,
pub cpu_peak: Option<f64>,
pub container_avg: Option<u64>,
pub container_peak: Option<u64>,
pub container_limit: Option<u64>,
pub parts: Option<WorkerParts>,
}Expand description
A process’s sample, as stored.
Fields§
§process_id: StringThe process.
step_s: u32§at: TimestampIts minute, or its window’s start.
roles: BTreeMap<String, String>What it runs (master, worker, webserver), each with its node’s ID.
resident_avg: u64Resident memory, in bytes: the minute’s, or the window’s average.
resident_peak: u64The highest (a minute’s: the same).
memory_avg: u64Its whole memory, in bytes: itself and, for a worker, its fork servers, wait step hosts and running tasks; the minute’s, or the window’s average.
memory_peak: u64The highest.
minutes: u32The minutes it covers: 1, or a rollup’s minute samples (its averages’ weight).
cpu_minutes: u32Of those, the ones with a CPU figure (the CPU average’s weight).
container_minutes: u32Of those, the ones with a container figure (the container average’s weight).
covered: u32The minutes of its window in which any process was sampled: 1 for a minute.
cpu_seconds: Option<f64>CPU time since the process started, in seconds (minute samples).
cpu_avg: Option<f64>Cores used since the sample before, or the window’s average; none for its first.
cpu_peak: Option<f64>The highest minute’s.
container_avg: Option<u64>Its container’s memory, average; none outside a cgroup v2.
container_peak: Option<u64>The highest.
container_limit: Option<u64>Its container’s limit; none when unlimited.
parts: Option<WorkerParts>A worker’s memory by part and its largest tasks (a rollup: the parts’ averages only).
Trait Implementations§
impl StructuralPartialEq for Sample
Auto Trait Implementations§
impl Freeze for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnsafeUnpin for Sample
impl UnwindSafe for Sample
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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