diff options
author | Aleksey Kladov <[email protected]> | 2019-04-14 21:18:58 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-04-14 23:10:07 +0100 |
commit | 5b7012318cdf5fb0bb8b01319270c1b4bf0311ee (patch) | |
tree | bd6ef9c5dbc06ae9eb4cf5b5cd769c1b8e4f6f92 /docs/dev/README.md | |
parent | b228947b6863f5864b48bb3a7f3dcca921f58d0b (diff) |
filter by time
Diffstat (limited to 'docs/dev/README.md')
-rw-r--r-- | docs/dev/README.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/dev/README.md b/docs/dev/README.md index 7fb5886c9..d34ff96c8 100644 --- a/docs/dev/README.md +++ b/docs/dev/README.md | |||
@@ -105,7 +105,7 @@ figure out where logs go. | |||
105 | Inside rust-analyzer, we use the standard `log` crate for logging, and | 105 | Inside rust-analyzer, we use the standard `log` crate for logging, and |
106 | `flexi_logger` for logging frotend. By default, log goes to stderr (the same as | 106 | `flexi_logger` for logging frotend. By default, log goes to stderr (the same as |
107 | with `env_logger`), but the stderr itself is processed by VS Code. To mirror | 107 | with `env_logger`), but the stderr itself is processed by VS Code. To mirror |
108 | logs to a `./log` directory, set `RA_INTERNAL_MODE=1` environmental variable. | 108 | logs to a `./log` directory, set `RA_LOG_DIR=1` environmental variable. |
109 | 109 | ||
110 | To see stderr in the running VS Code instance, go to the "Output" tab of the | 110 | To see stderr in the running VS Code instance, go to the "Output" tab of the |
111 | panel and select `rust-analyzer`. This shows `eprintln!` as well. Note that | 111 | panel and select `rust-analyzer`. This shows `eprintln!` as well. Note that |
@@ -143,5 +143,7 @@ We have a built-in hierarchical profiler, you can enable it by using `RA_PROF` e | |||
143 | ``` | 143 | ``` |
144 | RA_PROFILE=* // dump everything | 144 | RA_PROFILE=* // dump everything |
145 | RA_PROFILE=foo|bar|baz // enabled only selected entries | 145 | RA_PROFILE=foo|bar|baz // enabled only selected entries |
146 | RA_PROFILE=*@3 // dump everything, up to depth 3 | 146 | RA_PROFILE=*@3>10 // dump everything, up to depth 3, if it takes more than 10 ms |
147 | ``` | 147 | ``` |
148 | |||
149 | In particular, I have `export RA_PROFILE='*>10' in my shell profile. | ||