Struct sp_state_machine::StateMachineStats [−][src]
pub struct StateMachineStats {
pub reads_modified: RefCell<u64>,
pub bytes_read_modified: RefCell<u64>,
pub writes_overlay: RefCell<u64>,
pub bytes_writes_overlay: RefCell<u64>,
}Accumulated usage statistics specific to state machine crate.
Fields
reads_modified: RefCell<u64>Number of read query from runtime that hit a modified value (in state machine overlay).
bytes_read_modified: RefCell<u64>Size in byte of read queries that hit a modified value.
writes_overlay: RefCell<u64>Number of time a write operation occurs into the state machine overlay.
bytes_writes_overlay: RefCell<u64>Size in bytes of the writes overlay operation.
Implementations
impl StateMachineStats[src]
impl StateMachineStats[src]pub fn add(&self, other: &StateMachineStats)[src]
Accumulates some registered stats.
impl StateMachineStats[src]
impl StateMachineStats[src]pub fn tally_read_modified(&self, data_bytes: u64)[src]
Tally one read modified operation, of some length.
pub fn tally_write_overlay(&self, data_bytes: u64)[src]
Tally one write overlay operation, of some length.
Trait Implementations
impl Clone for StateMachineStats[src]
impl Clone for StateMachineStats[src]fn clone(&self) -> StateMachineStats[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Default for StateMachineStats[src]
impl Default for StateMachineStats[src]fn default() -> StateMachineStats[src]
Auto Trait Implementations
impl !RefUnwindSafe for StateMachineStats
impl Send for StateMachineStats
impl !Sync for StateMachineStats
impl Unpin for StateMachineStats
impl UnwindSafe for StateMachineStats
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,