[all-commits] [llvm/llvm-project] 901f55: [llvm-profdata] Add --output-format option

Ellis Hoag via All-commits all-commits at lists.llvm.org
Fri Oct 7 09:47:41 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 901f555ecade4951871cb62a93a855c9806f9ed5
      https://github.com/llvm/llvm-project/commit/901f555ecade4951871cb62a93a855c9806f9ed5
  Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
  Date:   2022-10-07 (Fri, 07 Oct 2022)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-profdata.rst
    M llvm/test/tools/llvm-profdata/sample-profile-json.test
    M llvm/tools/llvm-profdata/llvm-profdata.cpp

  Log Message:
  -----------
  [llvm-profdata] Add --output-format option

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.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D135127


  Commit: 70fb7bb561db39e648d1732c60190c8c09c5b1c5
      https://github.com/llvm/llvm-project/commit/70fb7bb561db39e648d1732c60190c8c09c5b1c5
  Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
  Date:   2022-10-07 (Fri, 07 Oct 2022)

  Changed paths:
    M compiler-rt/test/profile/Linux/instrprof-show-debug-info-correlation.c
    M llvm/include/llvm/ProfileData/InstrProfCorrelator.h
    M llvm/lib/ProfileData/InstrProfCorrelator.cpp
    M llvm/tools/llvm-profdata/llvm-profdata.cpp

  Log Message:
  -----------
  [InstrProf][llvm-profdata] Dump profile correlation data as YAML

Change the behavior of the `llvm-profdata show --debug-info=` command to dump a YAML file when using debug info correlation since it provides more information in a parseable format.

Reviewed By: yozhu, phosek

Differential Revision: https://reviews.llvm.org/D134770


Compare: https://github.com/llvm/llvm-project/compare/b5b79eb50b8a...70fb7bb561db


More information about the All-commits mailing list