diff options
author | Michal Terepeta <[email protected]> | 2020-01-03 11:50:35 +0000 |
---|---|---|
committer | Michal Terepeta <[email protected]> | 2020-01-03 11:50:35 +0000 |
commit | 100c2d01272b341b85b948da068d944b9af23ad0 (patch) | |
tree | 1b2cd8f90a91b687ddec97bab47e8e9e1bf21812 /crates/test_utils/src | |
parent | 4516c4c1447942a8f01b59a71dcf5abfa2c5e37a (diff) |
Add `profile` calls to {Module,Function}::diagnostics
With this change the output `ra_prof` gives a better indication where
the time is spent. Example output:
```
213ms - publish_diagnostics
213ms - diagnostics
70ms - Module::from_definition
70ms - Module::from_file
132ms - Module::diagnostics
78ms - Function::diagnostics
0ms - body_with_source_map_query (1 calls)
2ms - trait_solve_query (1 calls)
76ms - ???
15ms - Function::diagnostics
0ms - body_with_source_map_query (1 calls)
15ms - trait_solve_query (5 calls)
38ms - Function::diagnostics (51 calls)
8ms - parse_query (1 calls)
```
Signed-off-by: Michal Terepeta <[email protected]>
Diffstat (limited to 'crates/test_utils/src')
0 files changed, 0 insertions, 0 deletions