pub struct OperatorSnapshot {
pub id: usize,
pub name: String,
pub backend: BackendKind,
pub rows_in: u64,
pub rows_out: u64,
pub batches: u64,
pub elapsed_ns: u64,
pub bytes_h2d: u64,
pub bytes_d2h: u64,
pub memory_bytes: u64,
pub fallback_batches: u64,
}Expand description
Snapshot of one operator’s counters.
Fields§
§id: usizeRegistration index.
name: StringOperator display name.
backend: BackendKindPlanned backend.
rows_in: u64Input rows.
rows_out: u64Output rows.
batches: u64Batches processed.
elapsed_ns: u64Total processing time in nanoseconds.
bytes_h2d: u64Bytes copied host→device.
bytes_d2h: u64Bytes copied device→host.
memory_bytes: u64Currently allocated bytes.
fallback_batches: u64Batches that ran on the CPU reference although the operator was placed on a device. Zero is the claim “this operator is accelerated”; anything else is the size of the gap between the plan and what ran.
Implementations§
Source§impl OperatorSnapshot
impl OperatorSnapshot
Sourcepub fn fell_back_entirely(&self) -> bool
pub fn fell_back_entirely(&self) -> bool
true when every batch this operator processed took the CPU
reference path — the shape of a GPU deployment that is not using its
GPU at all.
Sourcepub fn mean_batch_latency_ms(&self) -> f64
pub fn mean_batch_latency_ms(&self) -> f64
Mean per-batch latency in milliseconds (zero when nothing ran).
Trait Implementations§
Source§impl Clone for OperatorSnapshot
impl Clone for OperatorSnapshot
Source§impl Debug for OperatorSnapshot
impl Debug for OperatorSnapshot
Source§impl<'de> Deserialize<'de> for OperatorSnapshot
impl<'de> Deserialize<'de> for OperatorSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OperatorSnapshot
Source§impl PartialEq for OperatorSnapshot
impl PartialEq for OperatorSnapshot
Source§impl Serialize for OperatorSnapshot
impl Serialize for OperatorSnapshot
impl StructuralPartialEq for OperatorSnapshot
Auto Trait Implementations§
impl Freeze for OperatorSnapshot
impl RefUnwindSafe for OperatorSnapshot
impl Send for OperatorSnapshot
impl Sync for OperatorSnapshot
impl Unpin for OperatorSnapshot
impl UnsafeUnpin for OperatorSnapshot
impl UnwindSafe for OperatorSnapshot
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.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§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