pub struct TelemetryHub { /* private fields */ }Expand description
The engine-wide telemetry hub.
Implementations§
Source§impl TelemetryHub
impl TelemetryHub
Sourcepub fn register_operator(
&self,
name: impl Into<String>,
backend: BackendKind,
) -> Arc<OperatorStats> ⓘ
pub fn register_operator( &self, name: impl Into<String>, backend: BackendKind, ) -> Arc<OperatorStats> ⓘ
Registers an operator and returns its live counters. Ids increase
monotonically for the life of the hub; the oldest registrations are
evicted once MAX_OPERATORS are held.
Sourcepub fn clear_operators(&self)
pub fn clear_operators(&self)
Forgets every registered operator (e.g. before running a new query whose dashboard should not show the previous one’s counters).
Sourcepub fn set_plan(&self, nodes: Vec<PlanNodeSummary>)
pub fn set_plan(&self, nodes: Vec<PlanNodeSummary>)
Replaces the displayed plan.
Sourcepub const fn tiers(&self) -> &TierGauges
pub const fn tiers(&self) -> &TierGauges
Memory tier gauges.
Sourcepub const fn spill(&self) -> &SpillCounters
pub const fn spill(&self) -> &SpillCounters
Spill counters.
Sourcepub fn snapshot(&self) -> TelemetrySnapshot
pub fn snapshot(&self) -> TelemetrySnapshot
A consistent point-in-time copy of everything the dashboard renders.
Trait Implementations§
Source§impl Debug for TelemetryHub
impl Debug for TelemetryHub
Source§impl Default for TelemetryHub
impl Default for TelemetryHub
Source§fn default() -> TelemetryHub
fn default() -> TelemetryHub
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for TelemetryHub
impl RefUnwindSafe for TelemetryHub
impl Send for TelemetryHub
impl Sync for TelemetryHub
impl Unpin for TelemetryHub
impl UnsafeUnpin for TelemetryHub
impl UnwindSafe for TelemetryHub
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
Converts
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> ⓘ
Converts
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