diff options
author | Aleksey Kladov <[email protected]> | 2021-02-23 18:02:17 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-02-23 18:02:17 +0000 |
commit | 68a94118457a963939ae609c40adcb5e42675a35 (patch) | |
tree | d7fad5a3b55328350b5638e3279c7d96f0ab7f86 | |
parent | 27ed1ebf8997cea55fb446ce249b390607b84105 (diff) |
reliable memory usage during benchmarking
-rw-r--r-- | xtask/src/main.rs | 5 |
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 | } |