From 777d8dca26047958d540d83fcefdd34171e62a86 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Fri, 11 Dec 2020 15:47:40 +0100 Subject: Fix memory usage metrics --- xtask/src/metrics.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xtask') 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 { } fn measure_analysis_stats_path(&mut self, name: &str, path: &str) -> Result<()> { eprintln!("\nMeasuring analysis-stats/{}", name); - let output = cmd!("./target/release/rust-analyzer analysis-stats --quiet {path}").read()?; + let output = + cmd!("./target/release/rust-analyzer analysis-stats --quiet --memory-usage {path}") + .read()?; for (metric, value, unit) in parse_metrics(&output) { self.report(&format!("analysis-stats/{}/{}", name, metric), value, unit.into()); } -- cgit v1.2.3