Skip to content

Commit 777d8dc

Browse files
Fix memory usage metrics
1 parent 15a644d commit 777d8dc

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)