aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/main_loop
diff options
context:
space:
mode:
authorMichal Terepeta <[email protected]>2020-01-03 11:50:35 +0000
committerMichal Terepeta <[email protected]>2020-01-03 11:50:35 +0000
commit100c2d01272b341b85b948da068d944b9af23ad0 (patch)
tree1b2cd8f90a91b687ddec97bab47e8e9e1bf21812 /crates/ra_lsp_server/src/main_loop
parent4516c4c1447942a8f01b59a71dcf5abfa2c5e37a (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/ra_lsp_server/src/main_loop')
0 files changed, 0 insertions, 0 deletions