Unrecognized sample profile encoding format
- Dominant language
- C++
- Stars
- 619
- Forks
- 127
- PR merge metrics
- No merged PRs in 30d
Description
After I use create_llvm_prof to read perf.data and the binary file ./code, I get the profile data in code.prof. However, when I build the code again using the collected profile, I got an error:
`./code.prof: Could not open profile: Unrecognized sample profile encoding format`
I think there is something wrong with my code.prof. What may cause this failure?
Also, the generation of code.prof also emit some errors.
```
E20221114 17:06:22.664913 92878 sample_reader.cc:280] No buildid found in binary
W20221114 17:06:22.676327 92878 profile.cc:102] use_lbr was enabled but range_count_map was empty!
W20221115 11:12:29.006178 69856 llvm_profile_writer.cc:46] Got an empty profile map. The output file might still be not empty (e.g., containing symbol list in binary format) but might be not helpful as a profile
```
Are the any connections between these errors?
Contributor guide
Assessment
This issue has not been assessed yet.