mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
account for dependencies when showing memory usage
This commit is contained in:
parent
46d7b08c5f
commit
e40494c6c1
2 changed files with 11 additions and 0 deletions
|
@ -252,6 +252,13 @@ impl RootDatabase {
|
|||
let q: $q = Default::default();
|
||||
let name = format!("{:?}", q);
|
||||
acc.push((name, before - after));
|
||||
|
||||
let before = memory_usage().allocated;
|
||||
self.query($q).sweep(sweep.discard_everything());
|
||||
let after = memory_usage().allocated;
|
||||
let q: $q = Default::default();
|
||||
let name = format!("{:?} (deps)", q);
|
||||
acc.push((name, before - after));
|
||||
)*}
|
||||
}
|
||||
sweep_each_query![
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue