Skip to main content

PhaseTimers

Struct PhaseTimers 

Source
pub struct PhaseTimers { /* private fields */ }
Expand description

Cumulative wall-time counters for one query execute: hexastore scan RPCs and string-registry resolve RPCs.

Lives behind an Arc on QueryContext and is shared across clones, so sub-executions and the post-execute materialize all land in the same totals. Updates are unconditional atomic adds — cheap enough to leave on in release builds, unlike TraceSink event formatting. Read the totals at query end for the phase split (waratah start --debug logs it as phases:), e.g. to tell scan-bound from materialize-bound queries.

Implementations§

Source§

impl PhaseTimers

Source

pub fn scan_wall_micros(&self) -> u64

Wall-union counterpart of Self::scan_micros.

Source

pub fn scan_rpcs(&self) -> u64

Scan RPCs issued so far.

Source

pub fn scan_micros(&self) -> u64

Cumulative scan RPC wall time (microseconds).

Source

pub fn resolve_rpcs(&self) -> u64

Resolve RPCs issued so far.

Source

pub fn resolve_hashes(&self) -> u64

Hashes requested across all resolve RPCs.

Source

pub fn resolve_micros(&self) -> u64

Cumulative resolve RPC wall time (microseconds).

Source

pub fn plan_micros(&self) -> u64

Cumulative plan-construction wall time (microseconds).

Source

pub fn execute_micros(&self) -> u64

Cumulative operator-execution wall time (microseconds).

Source

pub fn materialize_micros(&self) -> u64

Cumulative output-shaping wall time (microseconds).

Source

pub fn custom_op_micros(&self) -> u64

Cumulative CustomOp drain wall time (microseconds).

Source

pub fn custom_op_count(&self) -> u64

CustomOp drains executed (memo hits included).

Source

pub fn blob_micros(&self) -> u64

Cumulative blob-fetch wall time (microseconds).

Source

pub fn blob_rpcs(&self) -> u64

Batched blob fetches issued.

Source

pub fn blob_payloads(&self) -> u64

Payloads answered across all blob fetches (hits + misses).

Source

pub fn geo_scan_micros(&self) -> u64

Cumulative GeoCandidateScan drain wall time (microseconds).

Source

pub fn geo_scan_count(&self) -> u64

GeoCandidateScan drains issued.

Source

pub fn geo_scan_terms(&self) -> u64

Candidate terms returned across all geo drains.

Source

pub fn geo_drain_memo_hits(&self) -> u64

Geo drain memo hits (windows served without their RPC).

Source

pub fn temporal_scan_micros(&self) -> u64

Cumulative TemporalCandidateScan drain wall time (microseconds).

Source

pub fn temporal_scan_count(&self) -> u64

TemporalCandidateScan drains issued.

Source

pub fn temporal_scan_terms(&self) -> u64

Candidate terms returned across all temporal drains.

Source

pub fn text_scan_micros(&self) -> u64

Cumulative TextCandidateScan drain wall time (microseconds).

Source

pub fn text_scan_count(&self) -> u64

TextCandidateScan drains issued.

Source

pub fn text_scan_terms(&self) -> u64

Candidate terms returned across all text drains.

Source

pub fn text_drain_memo_hits(&self) -> u64

Text drain memo hits (windows served without their RPC).

Source

pub fn text_subject_scan_micros(&self) -> u64

Cumulative TextSubjectScan resolve wall time (microseconds).

Source

pub fn text_subject_scan_count(&self) -> u64

TextSubjectScan resolves issued.

Source

pub fn text_subject_scan_rows(&self) -> u64

Rows returned across all text subject resolves.

Source

pub fn text_subject_memo_hits(&self) -> u64

Text subject memo hits (windows served without their RPC).

Trait Implementations§

Source§

impl Debug for PhaseTimers

Source§

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

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

impl Default for PhaseTimers

Source§

fn default() -> PhaseTimers

Returns the “default value” for a type. Read more

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

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

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

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

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.

§

impl<T> IntoRequest<T> for T

§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<L> LayerExt<L> for L

§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in [Layered].
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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

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

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

§

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

§

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