solana_accounts_db::bucket_map_holder_stats

Struct BucketMapHolderStats

source
pub struct BucketMapHolderStats {
Show 35 fields pub held_in_mem: BucketMapHeldInMemStats, 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 failed_to_evict: AtomicU64, pub keys: AtomicU64, pub deletes: AtomicU64, pub buckets_scanned: 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: BucketMapHeldInMemStats§get_mem_us: AtomicU64§gets_from_mem: AtomicU64§get_missing_us: AtomicU64§gets_missing: AtomicU64§entry_mem_us: AtomicU64§entries_from_mem: AtomicU64§entry_missing_us: AtomicU64§entries_missing: AtomicU64§load_disk_found_count: AtomicU64§load_disk_found_us: AtomicU64§load_disk_missing_count: AtomicU64§load_disk_missing_us: AtomicU64§updates_in_mem: AtomicU64§items: AtomicU64§items_us: AtomicU64§failed_to_evict: AtomicU64§keys: AtomicU64§deletes: AtomicU64§buckets_scanned: AtomicU64§inserts: AtomicU64§bg_waiting_us: AtomicU64§bg_throttling_wait_us: AtomicU64§count_in_mem: AtomicUsize§per_bucket_count: Vec<AtomicUsize>§flush_entries_updated_on_disk: AtomicU64§flush_entries_evicted_from_mem: AtomicU64§active_threads: AtomicU64§get_range_us: AtomicU64§flush_scan_us: AtomicU64§flush_update_us: AtomicU64§flush_evict_us: AtomicU64§flush_grow_us: AtomicU64§estimate_mem: AtomicU64§flush_should_evict_us: AtomicU64

Implementations§

source§

impl BucketMapHolderStats

source

pub fn new(bins: usize) -> BucketMapHolderStats

source

pub fn inc_insert(&self)

source

pub fn inc_insert_count(&self, count: u64)

source

pub fn inc_delete(&self)

source

pub fn inc_mem_count(&self, bin: usize)

source

pub fn dec_mem_count(&self, bin: usize)

source

pub fn add_mem_count(&self, bin: usize, count: usize)

source

pub fn sub_mem_count(&self, bin: usize, count: usize)

source

pub fn remaining_until_next_interval(&self) -> u64

source

pub fn total_count(&self) -> usize

source

pub fn count_in_bucket(&self, bucket: usize) -> usize

source

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.

source

pub fn report_stats<T: IndexValue, U: DiskIndexValue + From<T> + Into<T>>( &self, storage: &BucketMapHolder<T, U>, )

Trait Implementations§

source§

impl Debug for BucketMapHolderStats

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for BucketMapHolderStats

source§

fn default() -> BucketMapHolderStats

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> AbiExample for T

source§

default fn example() -> T

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
source§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more