Struct sp_state_machine::UsageInfo [−][src]
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,
}Usage statistics for state backend.
Fields
reads: UsageUnitRead statistics (total).
writes: UsageUnitWrite statistics (total).
nodes_writes: UsageUnitWrite trie nodes statistics.
overlay_writes: UsageUnitWrite into cached state machine change overlay.
removed_nodes: UsageUnitRemoved trie nodes statistics.
cache_reads: UsageUnitCache read statistics.
modified_reads: UsageUnitModified value read statistics.
memory: usizeMemory used.
started: InstantMoment at which current statistics has been started being collected.
span: DurationTimespan of the statistics.
Implementations
impl UsageInfo[src]
impl UsageInfo[src]pub fn empty() -> Self[src]
Empty statistics.
Means no data was collected.
pub fn include_state_machine_states(&mut self, count: &StateMachineStats)[src]
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
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>, [src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>, [src]impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>, [src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>, [src]pub fn unchecked_into(self) -> T[src]
impl<T> MaybeDebug for T where
T: Debug, [src]
T: Debug,
impl<T> MaybeDebug for T where
T: Debug, [src]
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,