Struct tikv_jemalloc_ctl::epoch[][src]

pub struct epoch;
Expand description

jemalloc epoch.

Many of the statistics tracked by jemalloc are cached. The epoch controls when they are refreshed.

Example

Advancing the epoch:

use tikv_jemalloc_ctl::epoch;
let e = epoch::mib().unwrap();
let a = e.advance().unwrap();
let b = e.advance().unwrap();
assert_eq!(a + 1, b);

let o = e.update(0).unwrap();
assert_eq!(o, e.read().unwrap());

Implementations

Returns Management Information Base (MIB)

This value can be used to access the key without doing string lookup.

Key [::keys::Name].

Reads value using string API.

Writes value using string API.

Updates key to value returning its old value using string API.

Advances the epoch returning its old value - see epoch.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.