Struct tetsy_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


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.


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

impl Clone for IoStats[src]

impl Debug for IoStats[src]

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,