Use the llvm-profdata show command to verify debug info for profile correlation using the --debug-info option.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/test/profile/Linux/instrprof-show-debug-info-correlation.c | ||
---|---|---|
2 | It appears there are many similar names, which is confusing to remember. |
compiler-rt/test/profile/Linux/instrprof-show-debug-info-correlation.c | ||
---|---|---|
2 | I agree and in particular I'd prefer the last suggestion, that is making <profile file> optional when -debug-info=<debug file> is specified. I think that changing the meaning of the positional argument (that is either a profile or a binary) depending on other arguments is more confusing. | |
llvm/tools/llvm-profdata/llvm-profdata.cpp | ||
2581 | Nit: spelling. |
compiler-rt/test/profile/Linux/instrprof-show-debug-info-correlation.c | ||
---|---|---|
2 | I'm happy with using -debug-info=<debug file>. Originally I wanted to avoid removing the cl::Required in the Filename option, but this really isn't a big deal. |
Thanks for making the flag more consistent! Could you quickly update the summary in this patch to reflect the current code?
LGTM
It appears there are many similar names, which is confusing to remember.
The compilation uses -debug-info-correlate.
For llvm-profdata merge, use -debug-info=<debug file>.
Now, llvm-profdata show use -debug-info-correlation. This usage actually specifies <debug file> in the place of <profile file> which is a required argument to llvm-profdata show.
One thing I can think about is to use llvm-profdata show -debug-info=<debug file> while allowing to omit the required <profile file>, which becomes optional. But this doesn't look ideal, either.
I don't have a strong suggestion, but I wish some more consistent naming.