aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-02-23 18:02:40 +0000
committerGitHub <[email protected]>2021-02-23 18:02:40 +0000
commita307e4f31f3a66797628cee0645a38216398d9bd (patch)
tree83d470831836aab095db6aa330a09666c59a9dc1
parent0892ccd0901f7db5d61ad4789337f12b389b0308 (diff)
parent68a94118457a963939ae609c40adcb5e42675a35 (diff)
Merge #7770
7770: reliable memory usage during benchmarking r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
-rw-r--r--xtask/src/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs
index 5a99f4a76..cbb9b315e 100644
--- a/xtask/src/main.rs
+++ b/xtask/src/main.rs
@@ -134,7 +134,10 @@ FLAGS:
134 "bb" => { 134 "bb" => {
135 let suffix: String = args.free_from_str()?; 135 let suffix: String = args.free_from_str()?;
136 finish_args(args)?; 136 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 }
138 cp("./target/release/rust-analyzer", format!("./target/rust-analyzer-{}", suffix))?; 141 cp("./target/release/rust-analyzer", format!("./target/rust-analyzer-{}", suffix))?;
139 Ok(()) 142 Ok(())
140 } 143 }