Skip to content

Commit b48c507

Browse files
authored
Merge pull request #528 from HadrienG2/patch-1
Fix profile directory in crate graph self-profiling example
2 parents 7fb1480 + f1ec069 commit b48c507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ Since this will create a lot of files, we'll tell `rustc` to create a folder to
213213
```sh
214214
$ rm regex-17088.* regex-23649.* # clean up the old trace files since we're done with them
215215
$ cargo clean
216-
$ RUSTFLAGS="-Zself-profile=./profiles -Zself-profile-events=default,args" cargo build
216+
$ RUSTFLAGS="-Zself-profile=$(pwd)/profiles -Zself-profile-events=default,args" cargo build
217217
```
218218

219219
This creates quite a few trace files in the working directory.

0 commit comments

Comments
 (0)