diff options
author | Aleksey Kladov <[email protected]> | 2019-01-25 18:10:28 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-25 20:06:23 +0000 |
commit | 27a085f79ef130132bacfa2e9da6f389e63c6b42 (patch) | |
tree | 2d6822eb284798fc11977527d6fd25f95fe4f946 /crates/ra_ide_api | |
parent | e53eab3f25af2ebd381012f1b34f0bc52c6951eb (diff) |
print one size for symbols
Diffstat (limited to 'crates/ra_ide_api')
-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( |