aboutsummaryrefslogtreecommitdiff
path: root/crates/base_db/src
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2021-06-10 21:03:16 +0100
committerKirill Bulatov <[email protected]>2021-06-10 21:43:46 +0100
commit3aaf07b8cb9a17669894db9f3e6afdb302676fdb (patch)
tree40887b0852021392418f7369d9c3ec27ab966b62 /crates/base_db/src
parentf4da4de7cdd4a7dfe40a417b0100b83ec50d1e1d (diff)
Add more profiling for flyimports
Diffstat (limited to 'crates/base_db/src')
-rw-r--r--crates/base_db/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/base_db/src/lib.rs b/crates/base_db/src/lib.rs
index 62bf2a4b2..54baa3a63 100644
--- a/crates/base_db/src/lib.rs
+++ b/crates/base_db/src/lib.rs
@@ -120,6 +120,7 @@ impl<T: SourceDatabaseExt> FileLoader for FileLoaderDelegate<&'_ T> {
120 } 120 }
121 121
122 fn relevant_crates(&self, file_id: FileId) -> Arc<FxHashSet<CrateId>> { 122 fn relevant_crates(&self, file_id: FileId) -> Arc<FxHashSet<CrateId>> {
123 let _p = profile::span("relevant_crates");
123 let source_root = self.0.file_source_root(file_id); 124 let source_root = self.0.file_source_root(file_id);
124 self.0.source_root_crates(source_root) 125 self.0.source_root_crates(source_root)
125 } 126 }