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

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 2 23:00:19 PDT 2022


On Tue, Aug 2, 2022 at 10:53 PM Wenlei He via Phabricator <
reviews at reviews.llvm.org> wrote:

> 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.
>
>
The 'show' command idea sounds good to me.



>
> Repository:
>   rG LLVM Github Monorepo
>
> CHANGES SINCE LAST ACTION
>   https://reviews.llvm.org/D130944/new/
>
> https://reviews.llvm.org/D130944
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220802/c654b1ba/attachment.html>


More information about the llvm-commits mailing list