mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
print one size for symbols
This commit is contained in:
parent
aae69bc897
commit
50a7598773
2 changed files with 5 additions and 15 deletions
|
@ -137,12 +137,8 @@ impl SymbolIndex {
|
|||
self.symbols.len()
|
||||
}
|
||||
|
||||
pub(crate) fn fst_size(&self) -> usize {
|
||||
self.map.as_fst().size()
|
||||
}
|
||||
|
||||
pub(crate) fn symbols_size(&self) -> usize {
|
||||
self.symbols.len() * mem::size_of::<FileSymbol>()
|
||||
pub(crate) fn memory_size(&self) -> usize {
|
||||
self.map.as_fst().size() * self.symbols.len() * mem::size_of::<FileSymbol>()
|
||||
}
|
||||
|
||||
pub(crate) fn for_files(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue