mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
print one size for symbols
This commit is contained in:
parent
e53eab3f25
commit
27a085f79e
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ impl SymbolIndex {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn memory_size(&self) -> usize {
|
pub(crate) fn memory_size(&self) -> usize {
|
||||||
self.map.as_fst().size() * self.symbols.len() * mem::size_of::<FileSymbol>()
|
self.map.as_fst().size() + self.symbols.len() * mem::size_of::<FileSymbol>()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn for_files(
|
pub(crate) fn for_files(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue