pub struct CommitLatency(/* private fields */);
Expand description
Commit latencies info.
Contains information about latency of commit stages. Inner struct stores this info in 1/65536 of seconds units.
Implementations§
Source§impl CommitLatency
impl CommitLatency
Sourcepub const fn preparation(&self) -> Duration
pub const fn preparation(&self) -> Duration
Duration of preparation (commit child transactions, update sub-databases records and cursors destroying).
Sourcepub const fn gc_wallclock(&self) -> Duration
pub const fn gc_wallclock(&self) -> Duration
Duration of GC update by wall clock.
Sourcepub const fn write(&self) -> Duration
pub const fn write(&self) -> Duration
Duration of writing dirty/modified data pages to a filesystem,
i.e. the summary duration of a write()
syscalls during commit.
Sourcepub const fn sync(&self) -> Duration
pub const fn sync(&self) -> Duration
Duration of syncing written data to the disk/storage, i.e.
the duration of a fdatasync()
or a msync()
syscall during commit.
Sourcepub const fn gc_cputime(&self) -> Duration
pub const fn gc_cputime(&self) -> Duration
User-mode CPU time spent on GC update.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommitLatency
impl RefUnwindSafe for CommitLatency
impl Send for CommitLatency
impl Sync for CommitLatency
impl Unpin for CommitLatency
impl UnwindSafe for CommitLatency
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 100 bytes