pub struct SlotStats {
pub plans: u64,
pub warm_plans: u64,
pub host_rows: u64,
pub host_bytes: u64,
pub device_rows: u64,
pub device_bytes: u64,
}Expand description
Running totals for /metrics and for the A/B that says whether
residency is paying for itself.
Fields§
§plans: u64Plans applied, warm ones included.
warm_plans: u64Plans that copied nothing at all.
host_rows: u64Rows and bytes that crossed the link from host memory.
host_bytes: u64§device_rows: u64Rows and bytes moved slot-to-slot without touching the host.
device_bytes: u64Implementations§
Source§impl SlotStats
impl SlotStats
Sourcepub fn warm_plan_rate(&self) -> f64
pub fn warm_plan_rate(&self) -> f64
Fraction of plans that moved nothing. The headline number for
expert residency: at 1.0 the pool holds the whole working set
and decode issues no weight traffic at all.
Sourcepub fn host_bytes_per_plan(&self) -> f64
pub fn host_bytes_per_plan(&self) -> f64
Bytes that crossed the link per plan. What a link budget is
spent against, and the figure a q* split is supposed to move.
Trait Implementations§
impl Copy for SlotStats
impl Eq for SlotStats
impl StructuralPartialEq for SlotStats
Auto Trait Implementations§
impl Freeze for SlotStats
impl RefUnwindSafe for SlotStats
impl Send for SlotStats
impl Sync for SlotStats
impl Unpin for SlotStats
impl UnsafeUnpin for SlotStats
impl UnwindSafe for SlotStats
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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