Trait engine_traits::PerfContextExt [−][src]
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]
Required methods
fn get_perf_context(
&self,
level: PerfLevel,
kind: PerfContextKind
) -> Self::PerfContext
[src]
&self,
level: PerfLevel,
kind: PerfContextKind
) -> Self::PerfContext