pub struct SeekableAsyncFileMetrics { /* private fields */ }
Expand description
Metrics populated by a SeekableAsyncFile
. There should be exactly one per SeekableAsyncFile
; don’t share between multiple SeekableAsyncFile
values.
To initalise, use SeekableAsyncFileMetrics::default()
. The values can be accessed via the thread-safe getter methods.
Implementations§
Source§impl SeekableAsyncFileMetrics
impl SeekableAsyncFileMetrics
Sourcepub fn sync_background_loops_counter(&self) -> u64
pub fn sync_background_loops_counter(&self) -> u64
Total number of delayed sync background loop iterations.
Sourcepub fn sync_counter(&self) -> u64
pub fn sync_counter(&self) -> u64
Total number of fsync and fdatasync syscalls.
Sourcepub fn sync_delayed_counter(&self) -> u64
pub fn sync_delayed_counter(&self) -> u64
Total number of requested syncs that were delayed until a later time.
Sourcepub fn sync_longest_delay_us_counter(&self) -> u64
pub fn sync_longest_delay_us_counter(&self) -> u64
Total number of microseconds spent waiting for a sync by one or more delayed syncs.
Sourcepub fn sync_shortest_delay_us_counter(&self) -> u64
pub fn sync_shortest_delay_us_counter(&self) -> u64
Total number of microseconds spent waiting after a final delayed sync before the actual sync.
Sourcepub fn sync_us_counter(&self) -> u64
pub fn sync_us_counter(&self) -> u64
Total number of microseconds spent in fsync and fdatasync syscalls.
Sourcepub fn write_bytes_counter(&self) -> u64
pub fn write_bytes_counter(&self) -> u64
Total number of bytes written.
Sourcepub fn write_counter(&self) -> u64
pub fn write_counter(&self) -> u64
Total number of write syscalls.
Sourcepub fn write_us_counter(&self) -> u64
pub fn write_us_counter(&self) -> u64
Total number of microseconds spent in write syscalls.