(args: MemtrackArgs)
| 7 | } |
| 8 | |
| 9 | pub 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 | } |