mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Auto merge of #15070 - Veykril:analysis-stat-stuff, r=Veykril
internal: Report metric timings for file item trees and crate def map creation
This commit is contained in:
commit
bc26e81cd5
7 changed files with 67 additions and 16 deletions
|
@ -149,10 +149,8 @@ impl SearchScope {
|
|||
|
||||
let mut to_visit: Vec<_> = module.children(db).collect();
|
||||
while let Some(module) = to_visit.pop() {
|
||||
if let InFile { file_id, value: ModuleSource::SourceFile(_) } =
|
||||
module.definition_source(db)
|
||||
{
|
||||
entries.insert(file_id.original_file(db), None);
|
||||
if let Some(file_id) = module.as_source_file_id(db) {
|
||||
entries.insert(file_id, None);
|
||||
}
|
||||
to_visit.extend(module.children(db));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue