diff options
author | Jonas Schievink <[email protected]> | 2020-06-08 12:00:31 +0100 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2020-06-10 11:38:58 +0100 |
commit | d50a1a0fe9055bf03b9746cb341b251af8e7b326 (patch) | |
tree | 809541fb9317486a9845d1eba246e028f4541f72 | |
parent | 9251f181de92c64b51e34980e591d2611b030140 (diff) |
Profile `world_symbols`
-rw-r--r-- | crates/ra_ide_db/src/symbol_index.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_ide_db/src/symbol_index.rs b/crates/ra_ide_db/src/symbol_index.rs index acc31fe3b..299b47c6a 100644 --- a/crates/ra_ide_db/src/symbol_index.rs +++ b/crates/ra_ide_db/src/symbol_index.rs | |||
@@ -132,6 +132,8 @@ fn file_symbols(db: &impl SymbolsDatabase, file_id: FileId) -> Arc<SymbolIndex> | |||
132 | // | VS Code | kbd:[Ctrl+T] | 132 | // | VS Code | kbd:[Ctrl+T] |
133 | // |=== | 133 | // |=== |
134 | pub fn world_symbols(db: &RootDatabase, query: Query) -> Vec<FileSymbol> { | 134 | pub fn world_symbols(db: &RootDatabase, query: Query) -> Vec<FileSymbol> { |
135 | let _p = ra_prof::profile("world_symbols").detail(|| query.query.clone()); | ||
136 | |||
135 | /// Need to wrap Snapshot to provide `Clone` impl for `map_with` | 137 | /// Need to wrap Snapshot to provide `Clone` impl for `map_with` |
136 | struct Snap(salsa::Snapshot<RootDatabase>); | 138 | struct Snap(salsa::Snapshot<RootDatabase>); |
137 | impl Clone for Snap { | 139 | impl Clone for Snap { |