[PATCH] D135929: [profile] Add binary ids into indexed profiles
Gulfem Savrun Yeniceri via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 26 16:12:11 PDT 2022
gulfem added a comment.
In D135929#3886182 <https://reviews.llvm.org/D135929#3886182>, @davidxl wrote:
> What is the use case for the feature?
Our current coverage pipeline has the following steps:
1. Read binary-id in each raw profile (`.profraw`) via using `llvm-profdata`
2. Fetch all the binaries that with the corresponding binary id
3. Merge all the raw profiles, and generate an indexed profile (`profdata`)
4. Generate a coverage report via using `llvm-cov` by providing all the fetched binaries and indexed profile.
We would like to simplify our coverage pipeline by using [[ debuginfod | https://sourceware.org/elfutils/Debuginfod.html ]] in `llvm-cov`.
When we include binary ids into indexed profiles and start using `debuginfod` in `llvm-cov`, our coverage pipeline can look like this:
1. Merge all the raw profiles, and generate an indexed profile (`profdata`)
2. Generate a coverage report via using `llvm-cov` by providing only an indexed profile. `llvm-cov` is going to read all the binary ids from an indexed profile, and fetch them from the `debuginfod` server.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135929/new/
https://reviews.llvm.org/D135929
More information about the llvm-commits
mailing list