pub struct WALManagerMetrics {
pub total_transactions: u64,
pub committed_transactions: u64,
pub rolled_back_transactions: u64,
pub avg_transaction_duration_us: u64,
pub total_records_written: u64,
pub wal_size_bytes: u64,
pub checkpoint_count: u64,
pub recovery_count: u64,
pub group_commit_batches: u64,
pub avg_group_commit_size: f64,
pub compression_ratio: f64,
pub transactions_since_checkpoint: u64,
}Expand description
WAL performance metrics
Fields§
§total_transactions: u64Total transactions started
committed_transactions: u64Total transactions committed
rolled_back_transactions: u64Total transactions rolled back
avg_transaction_duration_us: u64Average transaction duration (microseconds)
total_records_written: u64Total records written
wal_size_bytes: u64WAL file size in bytes
checkpoint_count: u64Checkpoint count
recovery_count: u64Recovery count
group_commit_batches: u64Group commit statistics
avg_group_commit_size: f64§compression_ratio: f64Compression ratio (if enabled)
transactions_since_checkpoint: u64Transactions committed since last checkpoint (resettable counter)
Trait Implementations§
Source§impl Clone for WALManagerMetrics
impl Clone for WALManagerMetrics
Source§fn clone(&self) -> WALManagerMetrics
fn clone(&self) -> WALManagerMetrics
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 moreSource§impl Debug for WALManagerMetrics
impl Debug for WALManagerMetrics
Auto Trait Implementations§
impl Freeze for WALManagerMetrics
impl RefUnwindSafe for WALManagerMetrics
impl Send for WALManagerMetrics
impl Sync for WALManagerMetrics
impl Unpin for WALManagerMetrics
impl UnwindSafe for WALManagerMetrics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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