Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a
profile
call when calling db.crate_def_map
Example output: ``` 244ms - handle_inlay_hints 162ms - get_inlay_hints 162ms - SourceAnalyzer::new 69ms - def_with_body_from_child_node 69ms - analyze_container 69ms - analyze_container 69ms - Module::from_definition 69ms - Module::from_file 69ms - db.crate_def_map 0ms - parse_macro_query (6 calls) 0ms - raw_items_query (1 calls) 69ms - ??? ``` The interesting thing is that `crate_def_map_query` is not even called and spot-checking the dependencies, it seems that all of the query-functions already do call `profile` themselves. Is all this time spent in salsa itself? (checking if recomputation is needed) Signed-off-by: Michal Terepeta <michal.terepeta@gmail.com>
- Loading branch information