aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-12-11 14:48:27 +0000
committerGitHub <[email protected]>2020-12-11 14:48:27 +0000
commit57ea320ffc7668b58e7503a14ecc50cea19605ca (patch)
tree91695dcf6f26595b5e517d9918812ea9b365cf42
parentf304ce329f5c40f52572be7dbe29224033516c10 (diff)
parent777d8dca26047958d540d83fcefdd34171e62a86 (diff)
Merge #6825
6825: Fix memory usage metrics r=jonas-schievink a=jonas-schievink Let's see if this fixes https://github.com/rust-analyzer/rust-analyzer/issues/6808 bors r+ Co-authored-by: Jonas Schievink <[email protected]>
-rw-r--r--xtask/src/metrics.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/xtask/src/metrics.rs b/xtask/src/metrics.rs
index e0d1aaf97..624ad3b7e 100644
--- a/xtask/src/metrics.rs
+++ b/xtask/src/metrics.rs
@@ -81,7 +81,9 @@ impl Metrics {
81 } 81 }
82 fn measure_analysis_stats_path(&mut self, name: &str, path: &str) -> Result<()> { 82 fn measure_analysis_stats_path(&mut self, name: &str, path: &str) -> Result<()> {
83 eprintln!("\nMeasuring analysis-stats/{}", name); 83 eprintln!("\nMeasuring analysis-stats/{}", name);
84 let output = cmd!("./target/release/rust-analyzer analysis-stats --quiet {path}").read()?; 84 let output =
85 cmd!("./target/release/rust-analyzer analysis-stats --quiet --memory-usage {path}")
86 .read()?;
85 for (metric, value, unit) in parse_metrics(&output) { 87 for (metric, value, unit) in parse_metrics(&output) {
86 self.report(&format!("analysis-stats/{}/{}", name, metric), value, unit.into()); 88 self.report(&format!("analysis-stats/{}/{}", name, metric), value, unit.into());
87 } 89 }