diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-25 20:07:23 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-25 20:07:23 +0000 |
commit | d65dca6bb3844d71ca14c396497783cbf9650e4a (patch) | |
tree | 2d6822eb284798fc11977527d6fd25f95fe4f946 /crates/ra_ide_api/src | |
parent | e53eab3f25af2ebd381012f1b34f0bc52c6951eb (diff) | |
parent | 27a085f79ef130132bacfa2e9da6f389e63c6b42 (diff) |
Merge #648
648: print one size for symbols r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r-- | crates/ra_ide_api/src/symbol_index.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/symbol_index.rs b/crates/ra_ide_api/src/symbol_index.rs index 6baeabde6..6184ad3ec 100644 --- a/crates/ra_ide_api/src/symbol_index.rs +++ b/crates/ra_ide_api/src/symbol_index.rs | |||
@@ -138,7 +138,7 @@ impl SymbolIndex { | |||
138 | } | 138 | } |
139 | 139 | ||
140 | pub(crate) fn memory_size(&self) -> usize { | 140 | pub(crate) fn memory_size(&self) -> usize { |
141 | self.map.as_fst().size() * self.symbols.len() * mem::size_of::<FileSymbol>() | 141 | self.map.as_fst().size() + self.symbols.len() * mem::size_of::<FileSymbol>() |
142 | } | 142 | } |
143 | 143 | ||
144 | pub(crate) fn for_files( | 144 | pub(crate) fn for_files( |