diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-02-14 17:56:04 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-14 17:56:04 +0800 |
| commit | 27566abd87367e374f5575f2799eac7350065350 (patch) | |
| tree | 2520b115b99813f3dcba72c4c4806ee5e0636de7 | |
| parent | f8cc5d763b52a201f26a51e5797716e255130b72 (diff) | |
| parent | 7d999a5e497beae6b5e2283fbe1e8edded929f80 (diff) | |
| download | rust-27566abd87367e374f5575f2799eac7350065350.tar.gz rust-27566abd87367e374f5575f2799eac7350065350.zip | |
Merge pull request #2252 from chenyukang/fix-perf
Add note for perf issue
| -rw-r--r-- | src/doc/rustc-dev-guide/src/profiling/with_perf.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/doc/rustc-dev-guide/src/profiling/with_perf.md b/src/doc/rustc-dev-guide/src/profiling/with_perf.md index 6cd98f886dd..51a22d18577 100644 --- a/src/doc/rustc-dev-guide/src/profiling/with_perf.md +++ b/src/doc/rustc-dev-guide/src/profiling/with_perf.md @@ -52,6 +52,13 @@ you made in the beginning. But there are some things to be aware of: - You probably don't want incremental messing about with your profile. So something like `CARGO_INCREMENTAL=0` can be helpful. +In case to avoid the issue of `addr2line xxx/elf: could not read first record` when reading +collected data from `cargo`, you may need use the latest version of `addr2line`: + +```bash +cargo install addr2line --features="bin" +``` + ### Gathering a perf profile from a `perf.rust-lang.org` test Often we want to analyze a specific test from `perf.rust-lang.org`. |
