pub struct CompactionStatsAtomic { /* private fields */ }Expand description
Thread-safe compaction statistics using atomics
Implementations§
Source§impl CompactionStatsAtomic
impl CompactionStatsAtomic
Sourcepub fn snapshot(&self) -> CompactionStats
pub fn snapshot(&self) -> CompactionStats
Get a snapshot of current statistics
Sourcepub fn start_compaction(&self) -> CompactionGuard
pub fn start_compaction(&self) -> CompactionGuard
Increment compaction counter and return guard that decrements active count on drop
Sourcepub fn record_ssts_merged(&self, count: u64)
pub fn record_ssts_merged(&self, count: u64)
Record SSTs merged
Sourcepub fn record_ssts_created(&self, count: u64)
pub fn record_ssts_created(&self, count: u64)
Record SSTs created
Sourcepub fn record_bytes_read(&self, bytes: u64)
pub fn record_bytes_read(&self, bytes: u64)
Record bytes read
Sourcepub fn record_bytes_written(&self, bytes: u64)
pub fn record_bytes_written(&self, bytes: u64)
Record bytes written
Sourcepub fn record_bytes_reclaimed(&self, bytes: u64)
pub fn record_bytes_reclaimed(&self, bytes: u64)
Record bytes reclaimed
Sourcepub fn record_records_deduplicated(&self, count: u64)
pub fn record_records_deduplicated(&self, count: u64)
Record records deduplicated
Sourcepub fn record_tombstones_removed(&self, count: u64)
pub fn record_tombstones_removed(&self, count: u64)
Record tombstones removed
Trait Implementations§
Source§impl Clone for CompactionStatsAtomic
impl Clone for CompactionStatsAtomic
Source§fn clone(&self) -> CompactionStatsAtomic
fn clone(&self) -> CompactionStatsAtomic
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompactionStatsAtomic
impl RefUnwindSafe for CompactionStatsAtomic
impl Send for CompactionStatsAtomic
impl Sync for CompactionStatsAtomic
impl Unpin for CompactionStatsAtomic
impl UnwindSafe for CompactionStatsAtomic
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