pub struct BucketMapHolderStats {Show 34 fields
pub held_in_mem_slot_list_len: AtomicU64,
pub held_in_mem_slot_list_cached: AtomicU64,
pub get_mem_us: AtomicU64,
pub gets_from_mem: AtomicU64,
pub get_missing_us: AtomicU64,
pub gets_missing: AtomicU64,
pub entry_mem_us: AtomicU64,
pub entries_from_mem: AtomicU64,
pub entry_missing_us: AtomicU64,
pub entries_missing: AtomicU64,
pub load_disk_found_count: AtomicU64,
pub load_disk_found_us: AtomicU64,
pub load_disk_missing_count: AtomicU64,
pub load_disk_missing_us: AtomicU64,
pub updates_in_mem: AtomicU64,
pub items: AtomicU64,
pub items_us: AtomicU64,
pub keys: AtomicU64,
pub deletes: AtomicU64,
pub inserts: AtomicU64,
pub bg_waiting_us: AtomicU64,
pub bg_throttling_wait_us: AtomicU64,
pub count_in_mem: AtomicUsize,
pub per_bucket_count: Vec<AtomicUsize>,
pub flush_entries_updated_on_disk: AtomicU64,
pub flush_entries_evicted_from_mem: AtomicU64,
pub active_threads: AtomicU64,
pub get_range_us: AtomicU64,
pub flush_scan_us: AtomicU64,
pub flush_update_us: AtomicU64,
pub flush_evict_us: AtomicU64,
pub flush_grow_us: AtomicU64,
pub estimate_mem: AtomicU64,
pub flush_should_evict_us: AtomicU64,
/* private fields */
}Fields
held_in_mem_slot_list_len: AtomicU64held_in_mem_slot_list_cached: AtomicU64get_mem_us: AtomicU64gets_from_mem: AtomicU64get_missing_us: AtomicU64gets_missing: AtomicU64entry_mem_us: AtomicU64entries_from_mem: AtomicU64entry_missing_us: AtomicU64entries_missing: AtomicU64load_disk_found_count: AtomicU64load_disk_found_us: AtomicU64load_disk_missing_count: AtomicU64load_disk_missing_us: AtomicU64updates_in_mem: AtomicU64items: AtomicU64items_us: AtomicU64keys: AtomicU64deletes: AtomicU64inserts: AtomicU64bg_waiting_us: AtomicU64bg_throttling_wait_us: AtomicU64count_in_mem: AtomicUsizeper_bucket_count: Vec<AtomicUsize>flush_entries_updated_on_disk: AtomicU64flush_entries_evicted_from_mem: AtomicU64active_threads: AtomicU64get_range_us: AtomicU64flush_scan_us: AtomicU64flush_update_us: AtomicU64flush_evict_us: AtomicU64flush_grow_us: AtomicU64estimate_mem: AtomicU64flush_should_evict_us: AtomicU64Implementations
sourceimpl BucketMapHolderStats
impl BucketMapHolderStats
pub fn new(bins: usize) -> BucketMapHolderStats
pub fn insert_or_delete(&self, insert: bool, _bin: usize)
pub fn insert_or_delete_mem(&self, insert: bool, bin: usize)
pub fn insert_or_delete_mem_count(&self, insert: bool, bin: usize, count: usize)
pub fn remaining_until_next_interval(&self) -> u64
pub fn total_count(&self) -> usize
pub fn count_in_bucket(&self, bucket: usize) -> usize
sourcepub fn get_remaining_items_to_flush_estimate(&self) -> usize
pub fn get_remaining_items_to_flush_estimate(&self) -> usize
This is an estimate of the # of items in mem that are awaiting flushing to disk. returns (# items in mem) - (# items we intend to hold in mem for performance heuristics) The result is also an estimate because ‘held_in_mem’ is based on a stat that is swapped out when stats are reported.
pub fn report_stats<T: IndexValue>(&self, storage: &BucketMapHolder<T>)
Trait Implementations
sourceimpl Debug for BucketMapHolderStats
impl Debug for BucketMapHolderStats
sourceimpl Default for BucketMapHolderStats
impl Default for BucketMapHolderStats
sourcefn default() -> BucketMapHolderStats
fn default() -> BucketMapHolderStats
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for BucketMapHolderStats
impl Send for BucketMapHolderStats
impl Sync for BucketMapHolderStats
impl Unpin for BucketMapHolderStats
impl UnwindSafe for BucketMapHolderStats
Blanket Implementations
sourceimpl<T> AbiExample for T
impl<T> AbiExample for T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more