aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorLaurenČ›iu Nicola <[email protected]>2021-06-05 12:03:56 +0100
committerLaurenČ›iu Nicola <[email protected]>2021-06-05 13:20:41 +0100
commit18484365e69de06f20c234d57888a4b13ad9442b (patch)
tree0beb1c4546c30ae9278d3b35e755d098453b2dfd /xtask
parentfec00f4e1309ce4a7635b06e255359211999e5b5 (diff)
Enable proc macros and build scripts by default in CLI
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/metrics.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/xtask/src/metrics.rs b/xtask/src/metrics.rs
index b0b76b8aa..34679062f 100644
--- a/xtask/src/metrics.rs
+++ b/xtask/src/metrics.rs
@@ -81,9 +81,8 @@ impl Metrics {
81 } 81 }
82 fn measure_analysis_stats_path(&mut self, name: &str, path: &str) -> Result<()> { 82 fn measure_analysis_stats_path(&mut self, name: &str, path: &str) -> Result<()> {
83 eprintln!("\nMeasuring analysis-stats/{}", name); 83 eprintln!("\nMeasuring analysis-stats/{}", name);
84 let output = 84 let output = cmd!("./target/release/rust-analyzer -q analysis-stats --memory-usage {path}")
85 cmd!("./target/release/rust-analyzer --quiet analysis-stats --memory-usage {path}") 85 .read()?;
86 .read()?;
87 for (metric, value, unit) in parse_metrics(&output) { 86 for (metric, value, unit) in parse_metrics(&output) {
88 self.report(&format!("analysis-stats/{}/{}", name, metric), value, unit.into()); 87 self.report(&format!("analysis-stats/{}/{}", name, metric), value, unit.into());
89 } 88 }