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: Duration§apply_duration: DurationTrait Implementations§
source§impl AddAssign<&PerfContext> for PerfContext
impl AddAssign<&PerfContext> for PerfContext
source§fn add_assign(&mut self, rhs: &PerfContext)
fn add_assign(&mut self, rhs: &PerfContext)
Performs the
+= operation. Read moresource§impl Clone for PerfContext
impl Clone for PerfContext
source§fn clone(&self) -> PerfContext
fn clone(&self) -> PerfContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PerfContext
impl Debug for PerfContext
source§impl Default for PerfContext
impl Default for PerfContext
source§fn 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more