Skip to content

Commit 763b8c3

Browse files
author
Matthew Hammer
committed
update doc, fix rustc instructions
1 parent afd9595 commit 763b8c3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

profile-queries.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,16 @@ python x.py --stage 1
2222
Run the compiler on a source file, supplying two additional debugging flags with `-Z`:
2323

2424
```
25-
rustc -Z profile-queries -Z dump-dep-graph foo.rs
25+
rustc -Z profile-queries -Z incremental=cache foo.rs
2626
```
2727

2828
Regarding the two additional parameters:
2929

3030
- `-Z profile-queries` tells the compiler to run a separate thread
31-
that profiles the queries made by the main compiler thread(s).
32-
- `-Z dump-dep-graph` tells the compiler to "dump" various files that
33-
describe the compilation dependencies.
31+
that profiles the queries made by the main compiler thread(s). -
32+
`-Z incremental=cache` tells the compiler to "cache" various files
33+
that describe the compilation dependencies, in the subdirectory
34+
`cache`.
3435

3536
This command will generate the following files:
3637

0 commit comments

Comments
 (0)