Skip to content

Commit 57ea320

Browse files
Merge #6825
6825: Fix memory usage metrics r=jonas-schievink a=jonas-schievink Let's see if this fixes #6808 bors r+ Co-authored-by: Jonas Schievink <[email protected]>
2 parents f304ce3 + 777d8dc commit 57ea320

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xtask/src/metrics.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ impl Metrics {
8181
}
8282
fn measure_analysis_stats_path(&mut self, name: &str, path: &str) -> Result<()> {
8383
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()?;
8587
for (metric, value, unit) in parse_metrics(&output) {
8688
self.report(&format!("analysis-stats/{}/{}", name, metric), value, unit.into());
8789
}

0 commit comments

Comments
 (0)