Struct kvdb::IoStats [−][src]
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,
}Statistic for the span period
Fields
transactions: u64Number of transaction.
reads: u64Number of read operations.
cache_reads: u64Number of reads resulted in a read from cache.
writes: u64Number of write operations.
bytes_read: u64Number of bytes read
cache_read_bytes: u64Number of bytes read from cache
bytes_written: u64Number of bytes write
started: InstantStart of the statistic period.
span: DurationTotal duration of the statistic period.
Implementations
impl IoStats[src]
impl IoStats[src]pub fn empty() -> Self[src]
Empty statistic report.
pub fn avg_batch_size(&self) -> f64[src]
Average batch (transaction) size (writes per transaction)
pub fn reads_per_sec(&self) -> f64[src]
Read operations per second.
pub fn byte_reads_per_sec(&self) -> f64[src]
pub fn writes_per_sec(&self) -> f64[src]
Write operations per second.
pub fn byte_writes_per_sec(&self) -> f64[src]
pub fn ops_per_sec(&self) -> f64[src]
Total number of operations per second.
pub fn transactions_per_sec(&self) -> f64[src]
Transactions per second.