Add two options, -fprofile-function-groups=N and -fprofile-selected-function-group=i used to partition functions into N groups and only instrument the functions in group i. Similar options were added to xray in https://reviews.llvm.org/D87953 and the goal is the same; to reduce instrumented size overhead by spreading the overhead across multiple builds. Raw profiles from different groups can be added like normal using the llvm-profdata merge command.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
In D87953 I used crc32 to avoid computing an md5 hash on every function name.