pub struct TreeCounters {
pub num_seeks: AtomicUsize,
pub layer_files_total: AtomicUsize,
pub layer_files_skipped: AtomicUsize,
pub compaction: Mutex<CompactionCounters>,
}Expand description
Global counters and metrics for an LSM tree’s lifetime.
Fields§
§num_seeks: AtomicUsizeNumber of individual key-lookup attempts (reads) through the tree.
layer_files_total: AtomicUsizeTracks the number of layer files we might have looked at across all seeks.
Used alongside layer_files_skipped to compute the effectiveness of bloom filters.
layer_files_skipped: AtomicUsizeTracks how many layer files we skipped searching thanks to the bloom filter rejecting them.
compaction: Mutex<CompactionCounters>Embedded counters for mutable metrics that require locking.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TreeCounters
impl RefUnwindSafe for TreeCounters
impl Send for TreeCounters
impl Sync for TreeCounters
impl Unpin for TreeCounters
impl UnwindSafe for TreeCounters
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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