Struct rocksdb::perf::PerfContext[][src]

pub struct PerfContext { /* fields omitted */ }
[]

Thread local context for gathering performance counter efficiently and transparently.

Implementations

impl PerfContext[src][]

pub fn reset(&mut self)[src][]

Reset context

pub fn report(&self, exclude_zero_counters: bool) -> String[src][]

Get the report on perf

pub fn metric(&self, id: PerfMetric) -> u64[src][]

Returns value of a metric

Trait Implementations

impl Default for PerfContext[src][+]

impl Drop for PerfContext[src][+]

Auto Trait Implementations

impl RefUnwindSafe for PerfContext

impl !Send for PerfContext

impl !Sync for PerfContext

impl Unpin for PerfContext

impl UnwindSafe for PerfContext

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src][+]

impl<T> Borrow<T> for T where
    T: ?Sized
[src][+]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src][+]

impl<T> From<T> for T[src][+]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src][+]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src][+]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src][+]

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

The type returned in the event of a conversion error.