pub struct OperatorStats { /* private fields */ }Expand description
Live counters for one physical operator instance.
Implementations§
Source§impl OperatorStats
impl OperatorStats
Sourcepub const fn backend(&self) -> BackendKind
pub const fn backend(&self) -> BackendKind
The backend the operator was planned for.
Sourcepub fn record_batch(&self, rows_in: u64, rows_out: u64, elapsed: Duration)
pub fn record_batch(&self, rows_in: u64, rows_out: u64, elapsed: Duration)
Records one processed batch.
Sourcepub fn record_transfer(&self, h2d: u64, d2h: u64)
pub fn record_transfer(&self, h2d: u64, d2h: u64)
Records bytes moved host→device and device→host.
Sourcepub fn set_memory_bytes(&self, bytes: u64)
pub fn set_memory_bytes(&self, bytes: u64)
Sets the operator’s currently allocated bytes.
Sourcepub fn snapshot(&self) -> OperatorSnapshot
pub fn snapshot(&self) -> OperatorSnapshot
A point-in-time copy of the counters.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for OperatorStats
impl RefUnwindSafe for OperatorStats
impl Send for OperatorStats
impl Sync for OperatorStats
impl Unpin for OperatorStats
impl UnsafeUnpin for OperatorStats
impl UnwindSafe for OperatorStats
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