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

Function run_internal

src/cli/mod.rs:178–185  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

176/// benchmark's working directory, where a stray `codspeed.yaml` would otherwise
177/// abort the measurement.
178fn 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
187pub async fn run() -> Result<()> {
188 let cli = Cli::parse();

Callers 1

runFunction · 0.85

Calls 1

runFunction · 0.70

Tested by

no test coverage detected