aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-06-08 12:00:31 +0100
committerJonas Schievink <[email protected]>2020-06-10 11:38:58 +0100
commitd50a1a0fe9055bf03b9746cb341b251af8e7b326 (patch)
tree809541fb9317486a9845d1eba246e028f4541f72 /crates
parent9251f181de92c64b51e34980e591d2611b030140 (diff)
Profile `world_symbols`
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_ide_db/src/symbol_index.rs2
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// |===
134pub fn world_symbols(db: &RootDatabase, query: Query) -> Vec<FileSymbol> { 134pub 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 {