mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
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 <jonasschievink@gmail.com>
This commit is contained in:
commit
e68110c082
1 changed files with 1 additions and 3 deletions
|
@ -81,9 +81,7 @@ impl Metrics {
|
|||
}
|
||||
fn measure_analysis_stats_path(&mut self, name: &str, path: &str) -> Result<()> {
|
||||
eprintln!("\nMeasuring analysis-stats/{}", name);
|
||||
let output =
|
||||
cmd!("./target/release/rust-analyzer analysis-stats --quiet --memory-usage {path}")
|
||||
.read()?;
|
||||
let output = cmd!("./target/release/rust-analyzer analysis-stats --quiet {path}").read()?;
|
||||
for (metric, value, unit) in parse_metrics(&output) {
|
||||
self.report(&format!("analysis-stats/{}/{}", name, metric), value, unit.into());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue