Skip to content

Commit 68a9411

Browse files
committed
reliable memory usage during benchmarking
1 parent 27ed1eb commit 68a9411

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

xtask/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ FLAGS:
134134
"bb" => {
135135
let suffix: String = args.free_from_str()?;
136136
finish_args(args)?;
137-
cmd!("cargo build --release").run()?;
137+
{
138+
let _d = pushd("./crates/rust-analyzer")?;
139+
cmd!("cargo build --release --features jemalloc").run()?;
140+
}
138141
cp("./target/release/rust-analyzer", format!("./target/rust-analyzer-{}", suffix))?;
139142
Ok(())
140143
}

0 commit comments

Comments
 (0)