pub struct CompactionStats {
pub compactions_completed: u64,
pub sstables_merged_in: u64,
pub sstables_produced: u64,
pub bytes_read: u64,
pub bytes_written: u64,
pub rows_merged: u64,
pub total_time: Duration,
}Expand description
Cumulative statistics across all compaction operations (M5.2, Issue #474)
Tracks lifetime totals for monitoring compaction health and throughput. Updated atomically at the end of each successful merge.
Fields§
§compactions_completed: u64Total number of completed compaction cycles
sstables_merged_in: u64Total number of input SSTables consumed
sstables_produced: u64Total number of output SSTables produced
bytes_read: u64Total bytes read from input SSTables
bytes_written: u64Total bytes written to output SSTables
rows_merged: u64Total rows merged across all compactions
total_time: DurationTotal wall-clock time spent in compaction
Trait Implementations§
Source§impl Clone for CompactionStats
impl Clone for CompactionStats
Source§fn clone(&self) -> CompactionStats
fn clone(&self) -> CompactionStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompactionStats
impl Debug for CompactionStats
Source§impl Default for CompactionStats
impl Default for CompactionStats
Source§fn default() -> CompactionStats
fn default() -> CompactionStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CompactionStats
impl RefUnwindSafe for CompactionStats
impl Send for CompactionStats
impl Sync for CompactionStats
impl Unpin for CompactionStats
impl UnsafeUnpin for CompactionStats
impl UnwindSafe for CompactionStats
Blanket Implementations§
impl<T> Allocation for T
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