aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-12-11 15:51:13 +0000
committerGitHub <[email protected]>2020-12-11 15:51:13 +0000
commite68110c082abe2a16ec97f9f15ad8c9ebf73996d (patch)
treee347b135031f0db85e245af0776667f06036af60 /xtask
parentdf1f3907af965ee1a723fa529dbb2351fb9a008f (diff)
parent75543d8ca19515cbcf0a3090150fafebc41bb249 (diff)
Merge #6827
6827: Revert "Fix memory usage metrics" r=jonas-schievink a=jonas-schievink Reverts rust-analyzer/rust-analyzer#6825 It broke metrics entirely. Will debug this later, unless someone else gets to it first. bors r+ Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/metrics.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/xtask/src/metrics.rs b/xtask/src/metrics.rs
index 624ad3b7e..e0d1aaf97 100644
--- a/xtask/src/metrics.rs
+++ b/xtask/src/metrics.rs
@@ -81,9 +81,7 @@ 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 analysis-stats --quiet {path}").read()?;
85 cmd!("./target/release/rust-analyzer analysis-stats --quiet --memory-usage {path}")
86 .read()?;
87 for (metric, value, unit) in parse_metrics(&output) { 85 for (metric, value, unit) in parse_metrics(&output) {
88 self.report(&format!("analysis-stats/{}/{}", name, metric), value, unit.into()); 86 self.report(&format!("analysis-stats/{}/{}", name, metric), value, unit.into());
89 } 87 }