Enable proc macros and build scripts by default in CLI

This commit is contained in:
Laurențiu Nicola 2021-06-05 14:03:56 +03:00
parent fec00f4e13
commit 18484365e6
4 changed files with 21 additions and 22 deletions

View file

@ -81,9 +81,8 @@ impl Metrics {
}
fn measure_analysis_stats_path(&mut self, name: &str, path: &str) -> Result<()> {
eprintln!("\nMeasuring analysis-stats/{}", name);
let output =
cmd!("./target/release/rust-analyzer --quiet analysis-stats --memory-usage {path}")
.read()?;
let output = cmd!("./target/release/rust-analyzer -q analysis-stats --memory-usage {path}")
.read()?;
for (metric, value, unit) in parse_metrics(&output) {
self.report(&format!("analysis-stats/{}/{}", name, metric), value, unit.into());
}