Struct rocksdb::perf::PerfContext [−][src]
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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,