Struct tp_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]

pub fn add(&self, other: &StateMachineStats)[src]

Accumulates some registered stats.

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 Debug for StateMachineStats[src]

impl Default for StateMachineStats[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDebug for T where
    T: Debug

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,