Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'xtask/src/metrics.rs')
-rw-r--r--xtask/src/metrics.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/xtask/src/metrics.rs b/xtask/src/metrics.rs
index 845928432c..db4e1b3582 100644
--- a/xtask/src/metrics.rs
+++ b/xtask/src/metrics.rs
@@ -113,7 +113,11 @@ 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}").read()?;
+ let output = cmd!(
+ sh,
+ "./target/release/rust-analyzer -q analysis-stats {path} --query-sysroot-metadata"
+ )
+ .read()?;
for (metric, value, unit) in parse_metrics(&output) {
self.report(&format!("analysis-stats/{name}/{metric}"), value, unit.into());
}