pub struct TierCapacity {
pub device_bytes: Option<u64>,
pub host_bytes: Option<u64>,
pub spill_on_query_path: bool,
}Expand description
What the engine knows about the size of each memory tier, and whether anything on the query path fills them (#25).
None is “this engine has no number”, which is different from zero and
different from a plausible constant. The gauges used to be drawn against
fixed reference capacities, which made a dashboard that looked like a
bounded memory model over an engine that had none.
Fields§
§device_bytes: Option<u64>Device memory the local backend reports, when it drives a device.
host_bytes: Option<u64>Host memory the local backend reports.
spill_on_query_path: boolWhether a crate::telemetry::SpillCounters writer is on the query
path. false means the tier gauges and spill counters below can only
be moved by a caller using the spill manager as a library — no query
registers a batch with it — so a reading of zero says nothing about
the query’s memory use.
Trait Implementations§
Source§impl Clone for TierCapacity
impl Clone for TierCapacity
impl Copy for TierCapacity
Source§impl Debug for TierCapacity
impl Debug for TierCapacity
Source§impl Default for TierCapacity
impl Default for TierCapacity
Source§impl<'de> Deserialize<'de> for TierCapacity
impl<'de> Deserialize<'de> for TierCapacity
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>,
impl Eq for TierCapacity
Source§impl PartialEq for TierCapacity
impl PartialEq for TierCapacity
Source§impl Serialize for TierCapacity
impl Serialize for TierCapacity
impl StructuralPartialEq for TierCapacity
Auto Trait Implementations§
impl Freeze for TierCapacity
impl RefUnwindSafe for TierCapacity
impl Send for TierCapacity
impl Sync for TierCapacity
impl Unpin for TierCapacity
impl UnsafeUnpin for TierCapacity
impl UnwindSafe for TierCapacity
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
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
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> ⓘ
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> ⓘ
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