Struct sp_state_machine::UsageInfo
source · pub struct UsageInfo {
pub reads: UsageUnit,
pub writes: UsageUnit,
pub nodes_writes: UsageUnit,
pub overlay_writes: UsageUnit,
pub removed_nodes: UsageUnit,
pub cache_reads: UsageUnit,
pub modified_reads: UsageUnit,
pub memory: usize,
pub started: Instant,
pub span: Duration,
}
Expand description
Usage statistics for state backend.
Fields§
§reads: UsageUnit
Read statistics (total).
writes: UsageUnit
Write statistics (total).
nodes_writes: UsageUnit
Write trie nodes statistics.
overlay_writes: UsageUnit
Write into cached state machine change overlay.
removed_nodes: UsageUnit
Removed trie nodes statistics.
cache_reads: UsageUnit
Cache read statistics.
modified_reads: UsageUnit
Modified value read statistics.
memory: usize
Memory used.
started: Instant
Moment at which current statistics has been started being collected.
span: Duration
Timespan of the statistics.
Implementations§
source§impl UsageInfo
impl UsageInfo
sourcepub fn include_state_machine_states(&mut self, count: &StateMachineStats)
pub fn include_state_machine_states(&mut self, count: &StateMachineStats)
Add collected state machine to this state.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for UsageInfo
impl Send for UsageInfo
impl Sync for UsageInfo
impl Unpin for UsageInfo
impl UnwindSafe for UsageInfo
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.