risingwave_common::memory

Trait MemCounter

source
pub trait MemCounter:
    Send
    + Sync
    + 'static {
    // Required methods
    fn add(&self, bytes: i64);
    fn get_bytes_used(&self) -> i64;
}

Required Methods§

source

fn add(&self, bytes: i64)

source

fn get_bytes_used(&self) -> i64

Implementations on Foreign Types§

source§

impl MemCounter for TrAdderAtomic

source§

fn add(&self, bytes: i64)

source§

fn get_bytes_used(&self) -> i64

source§

impl MemCounter for TrAdderGauge

source§

fn add(&self, bytes: i64)

source§

fn get_bytes_used(&self) -> i64

source§

impl<const N: usize> MemCounter for LabelGuardedIntGauge<N>

source§

fn add(&self, bytes: i64)

source§

fn get_bytes_used(&self) -> i64

Implementors§