[PATCH] D135127: [llvm-profdata] Add --output-format option

Ellis Hoag via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 3 21:58:54 PDT 2022


ellis created this revision.
Herald added a project: All.
ellis added reviewers: yozhu, MaskRay, phosek, xur.
Herald added a subscriber: StephenFan.
ellis published this revision for review.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Add `--output-format` option for the `llvm-profdata show` command to select the type of output. The existing `--text` flag is used to emit text encoded profiles. To avoid confusion, `--output-format=text-encoding` indicates that the output will be profiles encoded in the text format, and `--output-format=text` indicates the default text output that doesn't necessarily represent a profile.
`--output-format=json` is an alias for `--json` and `--output-format=yaml` will be used in D134770 <https://reviews.llvm.org/D134770>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135127

Files:
  llvm/tools/llvm-profdata/llvm-profdata.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135127.464885.patch
Type: text/x-patch
Size: 7296 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221004/1a49b75d/attachment.bin>


More information about the llvm-commits mailing list