Trait engine_traits::PerfContextExt[][src]

pub trait PerfContextExt {
    type PerfContext: PerfContext;
    fn get_perf_context(
        &self,
        level: PerfLevel,
        kind: PerfContextKind
    ) -> Self::PerfContext; }

Extensions for measuring engine performance.

A PerfContext is created with a specific measurement level, and a ‘kind’ which represents wich tikv subsystem measurements are being collected for.

In rocks, PerfContext uses global state, and does not require access through an engine. Thus perf data is not per-engine. This doesn’t seem like a reasonable assumption for engines generally, so this abstraction follows the existing pattern in this crate and requires PerfContext to be accessed through the engine.

Associated Types

type PerfContext: PerfContext[src]

Loading content...

Required methods

fn get_perf_context(
    &self,
    level: PerfLevel,
    kind: PerfContextKind
) -> Self::PerfContext
[src]

Loading content...

Implementors

Loading content...