Revert "Fix memory usage metrics"

This commit is contained in:
Jonas Schievink 2020-12-11 16:50:17 +01:00 committed by GitHub
parent df1f3907af
commit 75543d8ca1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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