rust/crates/ra_hir/src
Michal Terepeta d6c2a59538 Split infer query into two for better profiling
This is the same change as we did with `crate_def_map` and it does seem
that we mostly spend time in salsa, without recomputing much on
rust-analyzer side.

Example output:

```
 233ms - handle_inlay_hints
      163ms - get_inlay_hints
          163ms - SourceAnalyzer::new
               67ms - def_with_body_from_child_node
                   67ms - analyze_container
                       67ms - analyze_container
                           67ms - Module::from_definition
                               67ms - Module::from_file
                                   67ms - crate_def_map
                                        0ms - parse_macro_query (6 calls)
                                        0ms - raw_items_query (1 calls)
                                       66ms - ???
                            0ms - crate_def_map (1 calls)
                        0ms - crate_def_map (1 calls)
               96ms - infer
                    2ms - trait_solve_query (2 calls)
                   94ms - ???
                0ms - body_with_source_map_query (1 calls)
                0ms - crate_def_map (1 calls)
      [...]
```

Signed-off-by: Michal Terepeta <michal.terepeta@gmail.com>
2020-01-03 19:58:11 +01:00
..
code_model.rs Add profile calls to {Module,Function}::diagnostics 2020-01-03 12:50:35 +01:00
db.rs Split infer query into two for better profiling 2020-01-03 19:58:11 +01:00
diagnostics.rs Move Ty 2019-11-27 21:16:00 +03:00
from_id.rs Remove ty from code_model 2019-12-08 12:44:14 +01:00
from_source.rs More profiling 2019-12-21 19:44:08 +01:00
has_source.rs Remove imports from hir 2019-12-21 15:18:14 +01:00
lib.rs Add visibility in code model for fields 2019-12-26 16:23:40 +01:00
source_binder.rs Use pre-stored macro file 2019-12-23 21:56:10 +08:00