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: i64Expression allocation bytes charged by the operator’s clause
(ADR-0463), beside the row-materialization memory_bytes.
reads: PlanReadsWireThe store-read mix behind db_hits (LABS-369).
phases: PlanPhasesWireThe 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: boolWhether 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: i64The 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: PlanFrontierWireThe 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.