Struct kvdb::IoStats

source ·
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§

Empty statistic report.

Average batch (transaction) size (writes per transaction)

Read operations per second.

Write operations per second.

Total number of operations per second.

Transactions per second.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.