rust/crates
Michal Terepeta 39cbb6b620 Rewrite ra_prof's profile printing
This changes the way we print things to first construct a mapping from
events to the children and uses that mapping to actually print things.
It should not change the actual output that we produce.

The new approach two benefits:

 * It avoids a potential quadratic behavior of the previous approach.
   For instance, for a vector of N elements:
   ```
   [Message{level: (N - 1)}, ..., Message{level: 1}, Message{level: 0}]
   ```
   we would first do a linear scan to find entry with level 0, then
   another scan to find one with level 1, etc.

 * It makes it much easier to improve the output in the future, because
   we now pre-compute the children for each entry and can easily take
   that into account when printing.

Signed-off-by: Michal Terepeta <michal.terepeta@gmail.com>
2020-01-22 20:13:56 +01:00
..
ra_arena Switch to variant-granularity field type inference 2019-11-25 00:12:36 +03:00
ra_assists added eq_token() method to LetStmt 2020-01-19 18:55:56 +01:00
ra_batch Support setting cargo features 2019-12-13 18:16:34 +08:00
ra_cargo_watch Tweak naming slightly 2020-01-15 15:53:08 +01:00
ra_cfg
ra_cli Some clippy lints 2020-01-13 11:27:06 -05:00
ra_db Remove the Default impl for SourceRoot 2020-01-08 19:42:27 +01:00
ra_fmt
ra_hir Fix comment 2020-01-16 17:57:50 +01:00
ra_hir_def Remove dead code 2020-01-16 17:56:14 +01:00
ra_hir_expand Use dummy value for line! and column! macro 2020-01-15 01:47:01 +08:00
ra_hir_ty Omit default parameters for reference types 2020-01-22 16:55:09 +02:00
ra_ide Omit default parameters for reference types 2020-01-22 16:55:09 +02:00
ra_lsp_server Minimize visibility 2020-01-16 11:58:31 +01:00
ra_mbe Add details about test_repeat_bad_var current state 2019-12-30 17:12:20 +01:00
ra_parser ra_syntax: remove code duplication and token reevaluation from ast::Literal::kind() 2020-01-22 13:02:21 +02:00
ra_prof Rewrite ra_prof's profile printing 2020-01-22 20:13:56 +01:00
ra_project_model Address nit 2020-01-10 22:41:52 +01:00
ra_syntax Fixed a typo 2020-01-22 13:02:21 +02:00
ra_text_edit
ra_tt Refactoring 2019-12-18 13:10:37 +08:00
ra_vfs_glob
test_utils Refactor goto tests to always specify texts 2019-12-18 16:00:35 +01:00