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
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more