1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use crate::engine::PanicEngine;
use engine_traits::{PerfContext, PerfContextExt, PerfContextKind, PerfLevel};
impl PerfContextExt for PanicEngine {
type PerfContext = PanicPerfContext;
fn get_perf_context(&self, level: PerfLevel, kind: PerfContextKind) -> Self::PerfContext {
panic!()
}
}
pub struct PanicPerfContext;
impl PerfContext for PanicPerfContext {
fn start_observe(&mut self) {
panic!()
}
fn report_metrics(&mut self) {
panic!()
}
}