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: Duration
Time spent encoding and compressing log entries.
write_wait_duration: Duration
Time spent waiting for the write group to form and get processed.
log_write_duration: Duration
Time spent writing the logs to files.
log_rotate_duration: Duration
Time spent rotating the active log file.
log_sync_duration: Duration
§apply_duration: Duration
Trait 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 Freeze for PerfContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more