Skip to main content

PlanMetricsWire

Struct PlanMetricsWire 

Source
pub struct PlanMetricsWire {
Show 13 fields pub rows: i64, pub time_ns: i64, pub db_hits: i64, pub memory_bytes: i64, pub expression_built_bytes: i64, pub reads: PlanReadsWire, pub phases: PlanPhasesWire, pub start: Option<PlanStartWire>, pub kernel: Option<KernelRungWire>, pub batched: bool, pub zone_skips: i64, pub frontier: PlanFrontierWire, pub frontier_decline: Option<&'static str>,
}
Expand description

The PROFILE metric set (ADR-0344 phase 2 + metric fields) as named fields: which number is rows, nanoseconds, store accesses, or row-materialization bytes is stated by the names, not by a position convention.

Fields§

§rows: i64§time_ns: i64§db_hits: i64§memory_bytes: i64§expression_built_bytes: i64

Expression allocation bytes charged by the operator’s clause (ADR-0463), beside the row-materialization memory_bytes.

§reads: PlanReadsWire

The store-read mix behind db_hits (LABS-369).

§phases: PlanPhasesWire

The phase times behind the read kinds (LABS-448): the seek’s and the walk’s elapsed nanoseconds — emitted with the metric block, like the kinds, so a half-present pair is a wire-contract break.

§start: Option<PlanStartWire>

The walk’s chosen start, when the clause walked one (LABS-369).

§kernel: Option<KernelRungWire>

Which rung served the clause’s MATCH walk (LABS-1117), typed: the chain carries its hop count, so the half-state the wire rejects (a chain rung without one) is unrepresentable here. None when the producer emitted no key (a non-MATCH clause, a folded or SEARCH MATCH, or a batch-chain MATCH).

§batched: bool

Whether the clause ran ADR-0468’s batch scan/filter/project chain (LABS-359) — false on the wire means absent, the producer emits the key only when true.

§zone_skips: i64

The batch filter’s zone skips (LABS-645): conjunct-batch evaluations the chunk’s derived min/max zone metadata provably replaced with the correct empty survivor set — 0 on the wire means absent, the producer emits the key only when nonzero.

§frontier: PlanFrontierWire

The frontier family’s run counters (ADR-0478), Default = the family declined the clause: the producer emits the whole set — the run counters, the NFA rung’s facts, and the budget fraction — only when it ran (levels > 0), all together like the start trio.

§frontier_decline: Option<&'static str>

Why the frontier rung did not serve the clause: a run-time decline (ADR-0516) or a plan-time gate (ADR-0478), one of the plan_keys::DECLINE_REASONS vocabulary — None on every clause the rung served or never considered, present only on a PROFILE node.

Trait Implementations§

Source§

impl Clone for PlanMetricsWire

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 Copy for PlanMetricsWire

Source§

impl Debug for PlanMetricsWire

Source§

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

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

impl PartialEq for PlanMetricsWire

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 StructuralPartialEq for PlanMetricsWire

Auto Trait Implementations§

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