Skip to main content

ActivePhase

Struct ActivePhase 

Source
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: bool

SRD-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: u64

Cursor 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: f64

Session-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: u64

SKIPPED 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

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 ActivePhase

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for ActivePhase

§

impl !UnwindSafe for ActivePhase

§

impl Forget for ActivePhase

§

impl Freeze for ActivePhase
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze, PhantomData<(String, u64, f64)>: Freeze, PhantomData<(String, f64, f64, u64, usize)>: Freeze, *const ArcInner<BinomialSummary> is !null: Freeze, PhantomData<ArcInner<BinomialSummary>>: Freeze, *const ArcInner<Ewma> is !null: Freeze, PhantomData<ArcInner<Ewma>>: Freeze, *const ArcInner<PeakTracker> is !null: Freeze, PhantomData<ArcInner<PeakTracker>>: Freeze, *const ArcInner<ActivityMetrics> is !null: Freeze, PhantomData<ArcInner<ActivityMetrics>>: Freeze, *const ArcInner<Vec<BakedBody>> is !null: Freeze, PhantomData<ArcInner<Vec<BakedBody>>>: Freeze, *const ArcInner<ArcSwapAny<Arc<String>>> is !null: Freeze, PhantomData<ArcInner<ArcSwapAny<Arc<String>>>>: Freeze, *const ArcInner<ArcSwapAny<Option<Arc<GutterSpec>>>> is !null: Freeze, PhantomData<ArcInner<ArcSwapAny<Option<Arc<GutterSpec>>>>>: Freeze, *const ArcInner<[String]> is !null: Freeze, PhantomData<ArcInner<[String]>>: Freeze,

§

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> 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(_simd: S, value: T) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more