PerformanceCounters

Struct PerformanceCounters 

Source
pub struct PerformanceCounters {
    pub get_operations: AtomicU64,
    pub put_operations: AtomicU64,
    pub remove_operations: AtomicU64,
    pub total_get_latency_us: AtomicU64,
    pub total_put_latency_us: AtomicU64,
    pub total_remove_latency_us: AtomicU64,
    pub peak_memory_usage: AtomicU64,
    pub current_memory_usage: AtomicU64,
    pub disk_bytes_read: AtomicU64,
    pub disk_bytes_written: AtomicU64,
}
Expand description

Real-time performance counters

Fields§

§get_operations: AtomicU64

Total get operations

§put_operations: AtomicU64

Total put operations

§remove_operations: AtomicU64

Total remove operations

§total_get_latency_us: AtomicU64

Total get latency (microseconds)

§total_put_latency_us: AtomicU64

Total put latency (microseconds)

§total_remove_latency_us: AtomicU64

Total remove latency (microseconds)

§peak_memory_usage: AtomicU64

Peak memory usage

§current_memory_usage: AtomicU64

Current memory usage

§disk_bytes_read: AtomicU64

Total bytes read from disk

§disk_bytes_written: AtomicU64

Total bytes written to disk

Trait Implementations§

Source§

impl Debug for PerformanceCounters

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PerformanceCounters

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V