Enum rocksdb::statistics::StatsLevel
source · #[repr(u8)]pub enum StatsLevel {
DisableAll = 0,
ExceptHistogramOrTimers = 2,
ExceptTimers = 3,
ExceptDetailedTimers = 4,
ExceptTimeForMutex = 5,
All = 6,
}
Expand description
StatsLevel can be used to reduce statistics overhead by skipping certain types of stats in the stats collection process.
Variants§
DisableAll = 0
Disable all metrics
ExceptHistogramOrTimers = 2
Disable timer stats, and skip histogram stats
ExceptTimers = 3
Skip timer stats
ExceptDetailedTimers = 4
Collect all stats except time inside mutex lock AND time spent on compression.
ExceptTimeForMutex = 5
Collect all stats except the counters requiring to get time inside the mutex lock.
All = 6
Collect all stats, including measuring duration of mutex operations. If getting time is expensive on the platform to run, it can reduce scalability to more threads, especially for writes.
Trait Implementations§
source§impl Clone for StatsLevel
impl Clone for StatsLevel
source§fn clone(&self) -> StatsLevel
fn clone(&self) -> StatsLevel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StatsLevel
impl Debug for StatsLevel
source§impl PartialEq for StatsLevel
impl PartialEq for StatsLevel
impl Copy for StatsLevel
impl Eq for StatsLevel
impl StructuralPartialEq for StatsLevel
Auto Trait Implementations§
impl Freeze for StatsLevel
impl RefUnwindSafe for StatsLevel
impl Send for StatsLevel
impl Sync for StatsLevel
impl Unpin for StatsLevel
impl UnwindSafe for StatsLevel
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)