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());