MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / select_profiler

Function select_profiler

src/executor/wall_time/executor.rs:47–53  ·  view source on GitHub ↗
(profiler_override: Option<WalltimeProfiler>)

Source from the content-addressed store, hash-verified

45}
46
47fn select_profiler(profiler_override: Option<WalltimeProfiler>) -> Option<Box<dyn Profiler>> {
48 match profiler_override {
49 Some(WalltimeProfiler::Perf) => Some(Box::new(PerfProfiler::new())),
50 Some(WalltimeProfiler::Samply) => Some(Box::new(SamplyProfiler::new())),
51 None => Some(Box::new(SamplyProfiler::new())),
52 }
53}
54
55impl WallTimeExecutor {
56 pub fn new(profiler_override: Option<WalltimeProfiler>) -> Self {

Callers 1

newMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected