[PATCH] D130944: [llvm-profdata] Add --json

Wenlei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 2 22:53:26 PDT 2022


wenlei added a comment.

Do you absolutely need this to be a supported format and generated natively in llvm tools?

For a profile format, we'd expect full reader/writer support, in both llvm-profdata and llvm-profgen. Having a partially supported output only format seems less than ideal.

For research purpose, would it be possible to generate json from a text profile through offline scripts?

Another option is to leverage `llvm-profdata show` to have an extra flag to output in json form. `show` output doesn't need to be a valid profile format and it doesn't need to be loadable by profile reader.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130944/new/

https://reviews.llvm.org/D130944



More information about the llvm-commits mailing list