diff options
author | Laurențiu Nicola <[email protected]> | 2021-06-05 12:03:56 +0100 |
---|---|---|
committer | Laurențiu Nicola <[email protected]> | 2021-06-05 13:20:41 +0100 |
commit | 18484365e69de06f20c234d57888a4b13ad9442b (patch) | |
tree | 0beb1c4546c30ae9278d3b35e755d098453b2dfd /xtask | |
parent | fec00f4e1309ce4a7635b06e255359211999e5b5 (diff) |
Enable proc macros and build scripts by default in CLI
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/metrics.rs | 5 |
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 | } |