Skip to content

Commit 93b67fd

Browse files
authored
Fix a bad path and simplify one of the examples (#520)
1 parent 479c3d4 commit 93b67fd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

posts/inside-rust/2020-02-25-intro-rustc-self-profile.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,10 @@ Which shows this `optimized_mir` query was processing the `regex::compile::{{imp
208208

209209
By using the `RUSTFLAGS` environment variable, we can profile every `rustc` invocation, not just the final crate's.
210210
`crox` can then combine all of the profiles together into one output file.
211-
Since this will create a lot of files, we'll first create a folder to put all the traces in.
211+
Since this will create a lot of files, we'll tell `rustc` to create a folder to put all the traces in.
212212

213213
```sh
214214
$ rm regex-17088.* regex-23649.* # clean up the old trace files since we're done with them
215-
$ mkdir profiles
216215
$ cargo clean
217216
$ RUSTFLAGS="-Zself-profile=./profiles -Zself-profile-events=default,args" cargo build
218217
```
@@ -221,7 +220,7 @@ This creates quite a few trace files in the working directory.
221220
Now, we'll tell `crox` to combine all of the trace files in the current directory together:
222221

223222
```sh
224-
$ crox --dir .
223+
$ crox --dir profiles
225224
```
226225

227226
Opening this file shows all of the crates compiled:

0 commit comments

Comments
 (0)