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

Function run

src/cli/memtrack.rs:9–16  ·  view source on GitHub ↗
(args: MemtrackArgs)

Source from the content-addressed store, hash-verified

7}
8
9pub fn run(args: MemtrackArgs) -> Result<()> {
10 // memtrack's own clap parser expects its name as `argv[0]`, not ours.
11 let argv = std::iter::once(std::ffi::OsString::from("memtrack")).chain(args.args);
12
13 // The runner reads this exit code to decide whether the benchmark failed.
14 let code = ::memtrack::cli::run_cli(argv)?;
15 std::process::exit(code);
16}

Callers

nothing calls this directly

Calls 1

run_cliFunction · 0.50

Tested by

no test coverage detected