(profiler_override: Option<WalltimeProfiler>)
| 45 | } |
| 46 | |
| 47 | fn 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 | |
| 55 | impl WallTimeExecutor { |
| 56 | pub fn new(profiler_override: Option<WalltimeProfiler>) -> Self { |