Dispatch a bundled subcommand, before any runner setup: these run in the benchmark's working directory, where a stray `codspeed.yaml` would otherwise abort the measurement.
(command: InternalCommands)
| 176 | /// benchmark's working directory, where a stray `codspeed.yaml` would otherwise |
| 177 | /// abort the measurement. |
| 178 | fn run_internal(command: InternalCommands) -> Result<()> { |
| 179 | match command { |
| 180 | InternalCommands::Samply(args) => samply::run(args), |
| 181 | InternalCommands::ExecHarness(args) => exec_harness::run(args), |
| 182 | #[cfg(target_os = "linux")] |
| 183 | InternalCommands::Memtrack(args) => memtrack::run(args), |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | pub async fn run() -> Result<()> { |
| 188 | let cli = Cli::parse(); |