reliable memory usage during benchmarking

This commit is contained in:
Aleksey Kladov 2021-02-23 21:02:17 +03:00
parent 27ed1ebf89
commit 68a9411845

View file

@ -134,7 +134,10 @@ FLAGS:
"bb" => {
let suffix: String = args.free_from_str()?;
finish_args(args)?;
cmd!("cargo build --release").run()?;
{
let _d = pushd("./crates/rust-analyzer")?;
cmd!("cargo build --release --features jemalloc").run()?;
}
cp("./target/release/rust-analyzer", format!("./target/rust-analyzer-{}", suffix))?;
Ok(())
}