mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 05:53:45 +00:00
Auto merge of #17801 - Veykril:unbrick-metrics, r=Veykril
minor: Fix metrics not running `@bors` r+
This commit is contained in:
commit
8137e74f46
1 changed files with 1 additions and 5 deletions
|
@ -117,11 +117,7 @@ impl Metrics {
|
||||||
) -> anyhow::Result<()> {
|
) -> anyhow::Result<()> {
|
||||||
assert!(Path::new(path).exists(), "unable to find bench in {path}");
|
assert!(Path::new(path).exists(), "unable to find bench in {path}");
|
||||||
eprintln!("\nMeasuring analysis-stats/{name}");
|
eprintln!("\nMeasuring analysis-stats/{name}");
|
||||||
let output = cmd!(
|
let output = cmd!(sh, "./target/release/rust-analyzer -q analysis-stats {path}").read()?;
|
||||||
sh,
|
|
||||||
"./target/release/rust-analyzer -q analysis-stats {path} --query-sysroot-metadata"
|
|
||||||
)
|
|
||||||
.read()?;
|
|
||||||
for (metric, value, unit) in parse_metrics(&output) {
|
for (metric, value, unit) in parse_metrics(&output) {
|
||||||
self.report(&format!("analysis-stats/{name}/{metric}"), value, unit.into());
|
self.report(&format!("analysis-stats/{name}/{metric}"), value, unit.into());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue