pub struct IoStats {
pub transactions: u64,
pub reads: u64,
pub cache_reads: u64,
pub writes: u64,
pub bytes_read: u64,
pub cache_read_bytes: u64,
pub bytes_written: u64,
pub started: Instant,
pub span: Duration,
}
Expand description
Statistic for the span
period
Fields§
§transactions: u64
Number of transaction.
reads: u64
Number of read operations.
cache_reads: u64
Number of reads resulted in a read from cache.
writes: u64
Number of write operations.
bytes_read: u64
Number of bytes read
cache_read_bytes: u64
Number of bytes read from cache
bytes_written: u64
Number of bytes write
started: Instant
Start of the statistic period.
span: Duration
Total duration of the statistic period.
Implementations§
source§impl IoStats
impl IoStats
sourcepub fn avg_batch_size(&self) -> f64
pub fn avg_batch_size(&self) -> f64
Average batch (transaction) size (writes per transaction)
sourcepub fn reads_per_sec(&self) -> f64
pub fn reads_per_sec(&self) -> f64
Read operations per second.
pub fn byte_reads_per_sec(&self) -> f64
sourcepub fn writes_per_sec(&self) -> f64
pub fn writes_per_sec(&self) -> f64
Write operations per second.
pub fn byte_writes_per_sec(&self) -> f64
sourcepub fn ops_per_sec(&self) -> f64
pub fn ops_per_sec(&self) -> f64
Total number of operations per second.
sourcepub fn transactions_per_sec(&self) -> f64
pub fn transactions_per_sec(&self) -> f64
Transactions per second.
pub fn avg_transaction_size(&self) -> f64
pub fn cache_hit_ratio(&self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for IoStats
impl Send for IoStats
impl Sync for IoStats
impl Unpin for IoStats
impl UnwindSafe for IoStats
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