pub struct WarmupMetrics {Show 14 fields
pub warmup_time_ns: AtomicU64,
pub candidates_refs_considered: AtomicUsize,
pub candidates_refs_selected: AtomicUsize,
pub candidates_criteria_considered: AtomicUsize,
pub candidates_criteria_selected: AtomicUsize,
pub flats_built: AtomicUsize,
pub masks_built: AtomicUsize,
pub indexes_built: AtomicUsize,
pub flat_cache_hits: AtomicUsize,
pub flat_cache_misses: AtomicUsize,
pub mask_cache_hits: AtomicUsize,
pub mask_cache_misses: AtomicUsize,
pub index_hits: AtomicUsize,
pub index_misses: AtomicUsize,
}Expand description
Metrics collected during warmup and evaluation
Fields§
§warmup_time_ns: AtomicU64§candidates_refs_considered: AtomicUsize§candidates_refs_selected: AtomicUsize§candidates_criteria_considered: AtomicUsize§candidates_criteria_selected: AtomicUsize§flats_built: AtomicUsize§masks_built: AtomicUsize§indexes_built: AtomicUsize§flat_cache_hits: AtomicUsize§flat_cache_misses: AtomicUsize§mask_cache_hits: AtomicUsize§mask_cache_misses: AtomicUsize§index_hits: AtomicUsize§index_misses: AtomicUsizeImplementations§
Source§impl WarmupMetrics
impl WarmupMetrics
pub fn new() -> Self
Sourcepub fn record_warmup_time(&self, duration: Duration)
pub fn record_warmup_time(&self, duration: Duration)
Record warmup timing
Sourcepub fn inc_candidates_refs_considered(&self, count: usize)
pub fn inc_candidates_refs_considered(&self, count: usize)
Increment a counter
pub fn inc_candidates_refs_selected(&self, count: usize)
pub fn inc_flats_built(&self, count: usize)
pub fn inc_flat_cache_hit(&self)
pub fn inc_flat_cache_miss(&self)
pub fn record_flat_build(&self, _cell_count: usize, build_time_ms: u64)
pub fn record_flat_reuse(&self)
pub fn record_mask_reuse(&self)
pub fn record_mask_build(&self, _row_count: usize, _build_time_ms: u64)
pub fn flats_built(&self) -> usize
pub fn flats_reused(&self) -> usize
pub fn total_build_time_ms(&self) -> u64
Trait Implementations§
Source§impl Default for WarmupMetrics
impl Default for WarmupMetrics
Source§fn default() -> WarmupMetrics
fn default() -> WarmupMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for WarmupMetrics
impl RefUnwindSafe for WarmupMetrics
impl Send for WarmupMetrics
impl Sync for WarmupMetrics
impl Unpin for WarmupMetrics
impl UnwindSafe for WarmupMetrics
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> 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