[−][src]Struct rocks::iostats_context::IOStatsContext
A thread local context for gathering io-stats efficiently and transparently.
Fields
thread_pool_id: u64
the thread pool id
bytes_written: u64
number of bytes that has been written.
bytes_read: u64
number of bytes that has been read.
open_nanos: u64
time spent in open()
and fopen()
.
allocate_nanos: u64
time spent in fallocate()
.
write_nanos: u64
time spent in write()
and pwrite()
.
read_nanos: u64
time spent in read()
and pread()
range_sync_nanos: u64
time spent in sync_file_range()
.
fsync_nanos: u64
time spent in fsync
prepare_write_nanos: u64
time spent in preparing write (fallocate etc).
logger_nanos: u64
time spent in Logger::Logv()
.
Implementations
impl IOStatsContext
[src]
pub fn current() -> &'static mut IOStatsContext
[src]
IOStatsContext for current thread
pub fn reset(&mut self)
[src]
reset all io-stats counter to zero
Trait Implementations
impl Debug for IOStatsContext
[src]
impl Display for IOStatsContext
[src]
Auto Trait Implementations
impl RefUnwindSafe for IOStatsContext
[src]
impl Send for IOStatsContext
[src]
impl Sync for IOStatsContext
[src]
impl Unpin for IOStatsContext
[src]
impl UnwindSafe for IOStatsContext
[src]
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,