aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/assists/add_missing_impl_members.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-01-03 13:25:37 +0000
committerGitHub <[email protected]>2020-01-03 13:25:37 +0000
commit15d94cbffcb07fa910d715b2acef88109ae24d39 (patch)
tree0b4d2b1afcb919b50dd16efc4448c18eb39a9f16 /crates/ra_assists/src/assists/add_missing_impl_members.rs
parente423cfe383a4a1f9f0b5459810587d50bf2a2b2d (diff)
parent2e2e4435605b8fdabb36f018c2d6cba1fd0069b8 (diff)
Merge #2731
2731: Split `crate_def_map` into two methods r=matklad a=michalt This change: - introduces `compute_crate_def_map` query and renames `CrateDefMap::crate_def_map_query` for consistency, - annotates `crate_def_map` as `salsa::transparent` and adds a top-level `crate_def_map` wrapper function around that starts the profiler and immediately calls into `compute_crate_def_map` query. This allows us to better understand where we spent the time, in particular, how much is spent in the recomputaiton and how much in salsa. Example output (where we don't actually re-compute anything, but the query still takes a non-trivial amount of time): ``` 211ms - handle_inlay_hints 150ms - get_inlay_hints 150ms - SourceAnalyzer::new 65ms - def_with_body_from_child_node 65ms - analyze_container 65ms - analyze_container 65ms - Module::from_definition 65ms - Module::from_file 65ms - crate_def_map 1ms - parse_macro_query (6 calls) 0ms - raw_items_query (1 calls) 64ms - ??? ``` Signed-off-by: Michal Terepeta <[email protected]> Co-authored-by: Michal Terepeta <[email protected]>
Diffstat (limited to 'crates/ra_assists/src/assists/add_missing_impl_members.rs')
0 files changed, 0 insertions, 0 deletions