Struct glommio::RingIoStats
source · pub struct RingIoStats { /* private fields */ }
Expand description
Stores information about IO performed in a specific ring
Implementations§
source§impl RingIoStats
impl RingIoStats
sourcepub fn files_opened(&self) -> u64
pub fn files_opened(&self) -> u64
The total amount of files opened in this executor so far.
files_opened
- files_closed
gives the current open files count
sourcepub fn files_closed(&self) -> u64
pub fn files_closed(&self) -> u64
The total amount of files closed in this executor so far.
files_opened
- files_closed
gives the current open files count
sourcepub fn file_reads(&self) -> (u64, u64)
pub fn file_reads(&self) -> (u64, u64)
File read IO stats
Returns the number of individual read ops as well as bytes read
sourcepub fn file_deduped_reads(&self) -> (u64, u64)
pub fn file_deduped_reads(&self) -> (u64, u64)
File read IO stats (deduplicated)
Returns the number of reads that fed from another preexisting buffer
sourcepub fn file_buffered_reads(&self) -> (u64, u64)
pub fn file_buffered_reads(&self) -> (u64, u64)
Buffered file read IO stats
Returns the number of individual buffered read ops as well as bytes read
sourcepub fn file_writes(&self) -> (u64, u64)
pub fn file_writes(&self) -> (u64, u64)
File write IO stats
Returns the number of individual write ops as well as bytes written
sourcepub fn file_buffered_writes(&self) -> (u64, u64)
pub fn file_buffered_writes(&self) -> (u64, u64)
Buffered file write IO stats
Returns the number of individual buffered write ops as well as bytes written
sourcepub fn pre_reactor_io_scheduler_latency_us(&self) -> &DDSketch
pub fn pre_reactor_io_scheduler_latency_us(&self) -> &DDSketch
The pre-reactor IO scheduler latency
Returns a distribution of measures tracking the time between the moment an IO operation was queued up and the moment it was submitted to the kernel
sourcepub fn io_latency_us(&self) -> &DDSketch
pub fn io_latency_us(&self) -> &DDSketch
The IO latency
Returns a distribution of measures tracking the time sources spent in the ring
sourcepub fn post_reactor_io_scheduler_latency_us(&self) -> &DDSketch
pub fn post_reactor_io_scheduler_latency_us(&self) -> &DDSketch
The post-reactor IO scheduler latency
Returns a distribution of measures tracking the time between the moment an IO operation was marked as fulfilled by the reactor and when the result was consumed by the application code.
Trait Implementations§
source§impl Clone for RingIoStats
impl Clone for RingIoStats
source§fn clone(&self) -> RingIoStats
fn clone(&self) -> RingIoStats
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RingIoStats
impl Debug for RingIoStats
source§impl Default for RingIoStats
impl Default for RingIoStats
source§impl<'a> Sum<&'a RingIoStats> for RingIoStats
impl<'a> Sum<&'a RingIoStats> for RingIoStats
source§fn sum<I: Iterator<Item = &'a RingIoStats>>(iter: I) -> Self
fn sum<I: Iterator<Item = &'a RingIoStats>>(iter: I) -> Self
Self
from the elements by
“summing up” the items.