pub struct GraphMeasuredPeakRow {
pub query_id: Option<QueryId>,
pub node_id: String,
pub node_index: usize,
pub algorithm: GraphAlgorithm,
pub execution_state: GraphClaimExecutionState,
pub measured_peak_bytes: Option<u64>,
pub measured_peak_provenance: GraphMeasuredPeakProvenance,
}Expand description
Fixed-shape measured-peak observation for one graph attempt.
The engine creates one of these before it enters the graph executor and
fills the runtime measurement when that attempt leaves it. It is
diagnostic only: the row cannot mint admission evidence or modify a device
grant. node_index is typed executor identity; report consumers should use
node_id.
Fields§
§query_id: Option<QueryId>Query-wide diagnostic correlation id, when the execution context has one. The runtime metrics owner assigns this sequence.
node_id: StringStable native graph node id for reports.
node_index: usizeTyped graph node identity used to correlate the post-execution sample without parsing a report string.
algorithm: GraphAlgorithmThe graph algorithm that owned this measured peak.
execution_state: GraphClaimExecutionStateExact engine state at the graph executor boundary.
measured_peak_bytes: Option<u64>Measured graph-stage peak bytes when a runtime observation completed.
measured_peak_provenance: GraphMeasuredPeakProvenanceSource of Self::measured_peak_bytes.
Implementations§
Source§impl GraphMeasuredPeakRow
impl GraphMeasuredPeakRow
Sourcepub fn pending(
query_id: Option<QueryId>,
node_id: impl Into<String>,
node_index: usize,
algorithm: GraphAlgorithm,
) -> Self
pub fn pending( query_id: Option<QueryId>, node_id: impl Into<String>, node_index: usize, algorithm: GraphAlgorithm, ) -> Self
Opens a pending observation for one graph plan node.
Sourcepub fn record_measured_peak(
&mut self,
measured_peak_bytes: Option<u64>,
measured_peak_provenance: GraphMeasuredPeakProvenance,
)
pub fn record_measured_peak( &mut self, measured_peak_bytes: Option<u64>, measured_peak_provenance: GraphMeasuredPeakProvenance, )
Records the one direct peak observation for this graph attempt.
An unavailable source always clears the measured value. A zero high-water mark remains an observed zero.
Trait Implementations§
Source§impl Clone for GraphMeasuredPeakRow
impl Clone for GraphMeasuredPeakRow
Source§impl Debug for GraphMeasuredPeakRow
impl Debug for GraphMeasuredPeakRow
impl Eq for GraphMeasuredPeakRow
Source§impl PartialEq for GraphMeasuredPeakRow
impl PartialEq for GraphMeasuredPeakRow
impl StructuralPartialEq for GraphMeasuredPeakRow
Auto Trait Implementations§
impl Freeze for GraphMeasuredPeakRow
impl RefUnwindSafe for GraphMeasuredPeakRow
impl Send for GraphMeasuredPeakRow
impl Sync for GraphMeasuredPeakRow
impl Unpin for GraphMeasuredPeakRow
impl UnsafeUnpin for GraphMeasuredPeakRow
impl UnwindSafe for GraphMeasuredPeakRow
Blanket Implementations§
impl<T> Allocation for T
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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