(
mode: &RunnerMode,
walltime_profiler: Option<WalltimeProfiler>,
)
| 46 | pub const EXECUTOR_TARGET: &str = "executor"; |
| 47 | |
| 48 | pub fn get_executor_from_mode( |
| 49 | mode: &RunnerMode, |
| 50 | walltime_profiler: Option<WalltimeProfiler>, |
| 51 | ) -> Box<dyn Executor> { |
| 52 | match mode { |
| 53 | #[allow(deprecated)] |
| 54 | RunnerMode::Instrumentation | RunnerMode::Simulation => Box::new(ValgrindExecutor), |
| 55 | RunnerMode::Walltime => Box::new(WallTimeExecutor::new(walltime_profiler)), |
| 56 | #[cfg(target_os = "linux")] |
| 57 | RunnerMode::Memory => Box::new(MemoryExecutor), |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | pub fn get_all_executors() -> Vec<Box<dyn Executor>> { |
| 62 | #[cfg_attr(not(target_os = "linux"), allow(unused_mut))] |
no outgoing calls
no test coverage detected