pub struct ActivePhase {Show 25 fields
pub name: String,
pub labels: String,
pub cursor_name: String,
pub cursor_extent: u64,
pub daemon: bool,
pub rows_consumed: u64,
pub rows_total: u64,
pub fibers: usize,
pub started_at: Instant,
pub session_started: f64,
pub ops_started: u64,
pub ops_finished: u64,
pub ops_ok: u64,
pub skips: u64,
pub errors: u64,
pub retries: u64,
pub ops_per_sec: f64,
pub adapter_counters: Vec<(String, u64, f64)>,
pub rows_per_batch: f64,
pub relevancy: Vec<(String, f64, f64, u64, usize)>,
pub throughput_summary: Arc<BinomialSummary>,
pub rate_ewma: Arc<Ewma>,
pub latency_peak_5s: Arc<PeakTracker>,
pub latency_peak_10s: Arc<PeakTracker>,
pub render: Option<PhaseRenderHandle>,
}Expand description
Live metrics for the currently running phase.
Fields§
§name: String§labels: String§cursor_name: String§cursor_extent: u64§daemon: boolSRD-82 Part 6 — this phase runs as a DAEMON (off the foreground budget, open-extent cursor). Excluded from AGGREGATE progress: the footer gutter bar averages the NON-daemon phases, since a daemon’s percent-of-budget is not meaningful run progress.
rows_consumed: u64Cursor ordinals consumed / cursor extent for a data-driven
phase (polydat global_consumed() / global_extent()). Both
0 for non-cursor phases (plain cycles:). rows_total > 0
drives the row-denominated rows:{consumed}/{total} status
chip in place of the op-denominated cycles: chip.
rows_total: u64§fibers: usize§started_at: Instant§session_started: f64Session-clock reading (see RunState::elapsed_secs) when this
phase entered Running — the SINGLE time basis every displayed
phase timer derives from, so session_started + leaf-time always
equals the session column shown beside it.
ops_started: u64§ops_finished: u64§ops_ok: u64§skips: u64SKIPPED ops (skips_total) — excluded from the ok% denominator.
errors: u64§retries: u64§ops_per_sec: f64§adapter_counters: Vec<(String, u64, f64)>§rows_per_batch: f64§relevancy: Vec<(String, f64, f64, u64, usize)>Live relevancy aggregates — one entry per metric (e.g. recall@10).
(name, window_mean, total_mean, total_count, window_len)
throughput_summary: Arc<BinomialSummary>Phase-scoped throughput sparkline storage. One sample per
phase_progress tick; capacity caps at the sparkline’s
horizontal cell count so the ring never outgrows the
render width. Wrapped in Arc so cloning ActivePhase
(for the pause snapshot) shares the summary instead of
duplicating its buffer. See SRD 62 §“Design notes →
Per-phase sparkline”.
rate_ewma: Arc<Ewma>Smoothed cursor-advance rate. The raw ops_per_sec from
the progress thread bounces frame-to-frame; the EWMA
gives the detail-block readout a stable number that
matches what a human would call “the current rate”.
latency_peak_5s: Arc<PeakTracker>Rolling max latency over the last 5 seconds — drives the
╪ 5s-peak cross-bar marker on the latency range row.
latency_peak_10s: Arc<PeakTracker>Rolling max latency over the last 10 seconds — drives the
╫ 10s-peak cross-bar marker.
render: Option<PhaseRenderHandle>SRD-100 P2 — the per-phase live render handle. Some once the
executor has attached it (after the activity’s metrics/binder
exist); None for the brief window between phase_starting and
the attach, and for phases with no live display fold. The
consumer-side status renderers fold active_phases and call
crate::status_fold::render_phase_status on this handle to
re-derive this phase’s status line — replacing the retired
inline-status producer threads + the single status_render scalar.
Trait Implementations§
Source§impl Clone for ActivePhase
impl Clone for ActivePhase
Auto Trait Implementations§
impl !RefUnwindSafe for ActivePhase
impl !UnwindSafe for ActivePhase
impl Forget for ActivePhase
impl Freeze for ActivePhase
impl Move for ActivePhase
impl Send for ActivePhase
impl Sync for ActivePhase
impl Unpin for ActivePhase
impl UnsafeUnpin for ActivePhase
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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