Struct kvdb::IoStats [−][src]
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
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.
pub fn avg_transaction_size(&self) -> f64
[src]
pub fn cache_hit_ratio(&self) -> f64
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,