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
impl PhaseTimers
Sourcepub fn scan_wall_micros(&self) -> u64
pub fn scan_wall_micros(&self) -> u64
Wall-union counterpart of Self::scan_micros.
Sourcepub fn scan_micros(&self) -> u64
pub fn scan_micros(&self) -> u64
Cumulative scan RPC wall time (microseconds).
Sourcepub fn resolve_rpcs(&self) -> u64
pub fn resolve_rpcs(&self) -> u64
Resolve RPCs issued so far.
Sourcepub fn resolve_hashes(&self) -> u64
pub fn resolve_hashes(&self) -> u64
Hashes requested across all resolve RPCs.
Sourcepub fn resolve_micros(&self) -> u64
pub fn resolve_micros(&self) -> u64
Cumulative resolve RPC wall time (microseconds).
Sourcepub fn plan_micros(&self) -> u64
pub fn plan_micros(&self) -> u64
Cumulative plan-construction wall time (microseconds).
Sourcepub fn execute_micros(&self) -> u64
pub fn execute_micros(&self) -> u64
Cumulative operator-execution wall time (microseconds).
Sourcepub fn materialize_micros(&self) -> u64
pub fn materialize_micros(&self) -> u64
Cumulative output-shaping wall time (microseconds).
Sourcepub fn custom_op_micros(&self) -> u64
pub fn custom_op_micros(&self) -> u64
Cumulative CustomOp drain wall time (microseconds).
Sourcepub fn custom_op_count(&self) -> u64
pub fn custom_op_count(&self) -> u64
CustomOp drains executed (memo hits included).
Sourcepub fn blob_micros(&self) -> u64
pub fn blob_micros(&self) -> u64
Cumulative blob-fetch wall time (microseconds).
Sourcepub fn blob_payloads(&self) -> u64
pub fn blob_payloads(&self) -> u64
Payloads answered across all blob fetches (hits + misses).
Sourcepub fn geo_scan_micros(&self) -> u64
pub fn geo_scan_micros(&self) -> u64
Cumulative GeoCandidateScan drain wall time (microseconds).
Sourcepub fn geo_scan_count(&self) -> u64
pub fn geo_scan_count(&self) -> u64
GeoCandidateScan drains issued.
Sourcepub fn geo_scan_terms(&self) -> u64
pub fn geo_scan_terms(&self) -> u64
Candidate terms returned across all geo drains.
Sourcepub fn geo_drain_memo_hits(&self) -> u64
pub fn geo_drain_memo_hits(&self) -> u64
Geo drain memo hits (windows served without their RPC).
Sourcepub fn temporal_scan_micros(&self) -> u64
pub fn temporal_scan_micros(&self) -> u64
Cumulative TemporalCandidateScan drain wall time (microseconds).
Sourcepub fn temporal_scan_count(&self) -> u64
pub fn temporal_scan_count(&self) -> u64
TemporalCandidateScan drains issued.
Sourcepub fn temporal_scan_terms(&self) -> u64
pub fn temporal_scan_terms(&self) -> u64
Candidate terms returned across all temporal drains.
Sourcepub fn text_scan_micros(&self) -> u64
pub fn text_scan_micros(&self) -> u64
Cumulative TextCandidateScan drain wall time (microseconds).
Sourcepub fn text_scan_count(&self) -> u64
pub fn text_scan_count(&self) -> u64
TextCandidateScan drains issued.
Sourcepub fn text_scan_terms(&self) -> u64
pub fn text_scan_terms(&self) -> u64
Candidate terms returned across all text drains.
Sourcepub fn text_drain_memo_hits(&self) -> u64
pub fn text_drain_memo_hits(&self) -> u64
Text drain memo hits (windows served without their RPC).
Sourcepub fn text_subject_scan_micros(&self) -> u64
pub fn text_subject_scan_micros(&self) -> u64
Cumulative TextSubjectScan resolve wall time (microseconds).
Sourcepub fn text_subject_scan_count(&self) -> u64
pub fn text_subject_scan_count(&self) -> u64
TextSubjectScan resolves issued.
Sourcepub fn text_subject_scan_rows(&self) -> u64
pub fn text_subject_scan_rows(&self) -> u64
Rows returned across all text subject resolves.
Sourcepub fn text_subject_memo_hits(&self) -> u64
pub fn text_subject_memo_hits(&self) -> u64
Text subject memo hits (windows served without their RPC).
Trait Implementations§
Source§impl Debug for PhaseTimers
impl Debug for PhaseTimers
Source§impl Default for PhaseTimers
impl Default for PhaseTimers
Source§fn default() -> PhaseTimers
fn default() -> PhaseTimers
Auto Trait Implementations§
impl !Freeze for PhaseTimers
impl RefUnwindSafe for PhaseTimers
impl Send for PhaseTimers
impl Sync for PhaseTimers
impl Unpin for PhaseTimers
impl UnsafeUnpin for PhaseTimers
impl UnwindSafe for PhaseTimers
Blanket Implementations§
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].