diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-05 13:29:52 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-05 13:29:52 +0100 |
commit | 5092d8c1ae50010d35f6860b6420a69ddcd9ca45 (patch) | |
tree | bb90ff3cd3e5185fe2a4fc35b0d171a6679e691b /xtask | |
parent | 4c54ec1c3cd45db142d2e4592606b0021cf66033 (diff) | |
parent | 18484365e69de06f20c234d57888a4b13ad9442b (diff) |
Merge #9147
9147: internal: enable proc macros and build scripts in cli r=flodiebold a=lnicola
Co-authored-by: Laurențiu Nicola <[email protected]>
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 | } |