Skip to content

Commit d50a1a0

Browse files
author
Jonas Schievink
committed
Profile world_symbols
1 parent 9251f18 commit d50a1a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/ra_ide_db/src/symbol_index.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ fn file_symbols(db: &impl SymbolsDatabase, file_id: FileId) -> Arc<SymbolIndex>
132132
// | VS Code | kbd:[Ctrl+T]
133133
// |===
134134
pub fn world_symbols(db: &RootDatabase, query: Query) -> Vec<FileSymbol> {
135+
let _p = ra_prof::profile("world_symbols").detail(|| query.query.clone());
136+
135137
/// Need to wrap Snapshot to provide `Clone` impl for `map_with`
136138
struct Snap(salsa::Snapshot<RootDatabase>);
137139
impl Clone for Snap {

0 commit comments

Comments
 (0)