[PATCH] D135929: [profile] Add binary ids into indexed profiles

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 27 09:18:05 PDT 2022


davidxl added a comment.



In D135929#3886921 <https://reviews.llvm.org/D135929#3886921>, @gulfem wrote:

> 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 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 the associated binaries from the `debuginfod` server.

thanks.


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