Skip to content

Commit 27566ab

Browse files
authored
Merge pull request rust-lang#2252 from chenyukang/fix-perf
Add note for perf issue
2 parents f8cc5d7 + 7d999a5 commit 27566ab

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/doc/rustc-dev-guide/src/profiling/with_perf.md

+7
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ you made in the beginning. But there are some things to be aware of:
5252
- You probably don't want incremental messing about with your
5353
profile. So something like `CARGO_INCREMENTAL=0` can be helpful.
5454

55+
In case to avoid the issue of `addr2line xxx/elf: could not read first record` when reading
56+
collected data from `cargo`, you may need use the latest version of `addr2line`:
57+
58+
```bash
59+
cargo install addr2line --features="bin"
60+
```
61+
5562
### Gathering a perf profile from a `perf.rust-lang.org` test
5663

5764
Often we want to analyze a specific test from `perf.rust-lang.org`.

0 commit comments

Comments
 (0)