diff options
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r-- | crates/ra_ide_api/src/change.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/change.rs b/crates/ra_ide_api/src/change.rs index efc9a92de..179f17ca4 100644 --- a/crates/ra_ide_api/src/change.rs +++ b/crates/ra_ide_api/src/change.rs | |||
@@ -252,6 +252,13 @@ impl RootDatabase { | |||
252 | let q: $q = Default::default(); | 252 | let q: $q = Default::default(); |
253 | let name = format!("{:?}", q); | 253 | let name = format!("{:?}", q); |
254 | acc.push((name, before - after)); | 254 | acc.push((name, before - after)); |
255 | |||
256 | let before = memory_usage().allocated; | ||
257 | self.query($q).sweep(sweep.discard_everything()); | ||
258 | let after = memory_usage().allocated; | ||
259 | let q: $q = Default::default(); | ||
260 | let name = format!("{:?} (deps)", q); | ||
261 | acc.push((name, before - after)); | ||
255 | )*} | 262 | )*} |
256 | } | 263 | } |
257 | sweep_each_query![ | 264 | sweep_each_query![ |