minor: Fix metrics not running

This commit is contained in:
Lukas Wirth 2024-08-05 14:59:27 +02:00
parent fbed308ebe
commit 2d15cdb9fc

View file

@ -117,11 +117,7 @@ impl Metrics {
) -> anyhow::Result<()> {
assert!(Path::new(path).exists(), "unable to find bench in {path}");
eprintln!("\nMeasuring analysis-stats/{name}");
let output = cmd!(
sh,
"./target/release/rust-analyzer -q analysis-stats {path} --query-sysroot-metadata"
)
.read()?;
let output = cmd!(sh, "./target/release/rust-analyzer -q analysis-stats {path}").read()?;
for (metric, value, unit) in parse_metrics(&output) {
self.report(&format!("analysis-stats/{name}/{metric}"), value, unit.into());
}