Struct raft_engine::PerfContext
source · [−]pub struct PerfContext {
pub log_populating_duration: Duration,
pub write_wait_duration: Duration,
pub log_write_duration: Duration,
pub log_rotate_duration: Duration,
pub log_sync_duration: Duration,
pub apply_duration: Duration,
}Expand description
PerfContext records cumulative performance statistics of operations.
Raft Engine will update the data in the thread-local PerfContext whenever an opeartion is performed.
Fields
log_populating_duration: DurationTime spent encoding and compressing log entries.
write_wait_duration: DurationTime spent waiting for the write group to form and get processed.
log_write_duration: DurationTime spent writing the logs to files.
log_rotate_duration: DurationTime spent rotating the active log file.
log_sync_duration: Durationapply_duration: DurationTrait Implementations
sourceimpl AddAssign<&PerfContext> for PerfContext
impl AddAssign<&PerfContext> for PerfContext
sourcefn add_assign(&mut self, rhs: &PerfContext)
fn add_assign(&mut self, rhs: &PerfContext)
Performs the += operation. Read more
sourceimpl Clone for PerfContext
impl Clone for PerfContext
sourcefn clone(&self) -> PerfContext
fn clone(&self) -> PerfContext
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PerfContext
impl Debug for PerfContext
sourceimpl Default for PerfContext
impl Default for PerfContext
sourcefn default() -> PerfContext
fn default() -> PerfContext
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for PerfContext
impl Send for PerfContext
impl Sync for PerfContext
impl Unpin for PerfContext
impl UnwindSafe for PerfContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more