mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 21:13:37 +00:00
Fix RA_PROFILE typo in docs
This commit is contained in:
parent
1b73abd1c3
commit
aadab96c9d
1 changed files with 2 additions and 2 deletions
|
@ -157,7 +157,7 @@ There's also two VS Code commands which might be of interest:
|
||||||
|
|
||||||
# Profiling
|
# Profiling
|
||||||
|
|
||||||
We have a built-in hierarchical profiler, you can enable it by using `RA_PROF` env-var:
|
We have a built-in hierarchical profiler, you can enable it by using `RA_PROFILE` env-var:
|
||||||
|
|
||||||
```
|
```
|
||||||
RA_PROFILE=* // dump everything
|
RA_PROFILE=* // dump everything
|
||||||
|
@ -165,7 +165,7 @@ RA_PROFILE=foo|bar|baz // enabled only selected entries
|
||||||
RA_PROFILE=*@3>10 // dump everything, up to depth 3, if it takes more than 10 ms
|
RA_PROFILE=*@3>10 // dump everything, up to depth 3, if it takes more than 10 ms
|
||||||
```
|
```
|
||||||
|
|
||||||
In particular, I have `export RA_PROFILE='*>10' in my shell profile.
|
In particular, I have `export RA_PROFILE='*>10'` in my shell profile.
|
||||||
|
|
||||||
To measure time for from-scratch analysis, use something like this:
|
To measure time for from-scratch analysis, use something like this:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue