llvm-project/llvm/test/tools/llvm-profdata
Kazu Hirata a044d0491e [llvm-profdata] Support JSON as as an output-only format
This patch teaches llvm-profdata to output the sample profile in the
JSON format.  The new option is intended to be used for research and
development purposes.  For example, one can write a Python script to
take a JSON file and analyze how similar different inline instances of
a given function are to each other.

I've chosen JSON because Python can parse it reasonably fast, and it
just takes a couple of lines to read the whole data:

  import json
  with open ('profile.json') as f:
    profile = json.load(f)

Differential Revision: https://reviews.llvm.org/D130944
2022-08-09 16:24:53 -07:00
..
Inputs [memprof] Return an error for unsupported symbolization. 2022-06-27 09:43:26 -07:00
binary-ids-padding.test [InstrProfData] Bump the raw profile version to 8 2021-10-05 09:57:56 -07:00
c-general.test [profile] Add binary id into profiles 2021-07-23 00:19:12 +00:00
compact-sample.proftext
compat.proftext
count-mismatch.proftext
cs-sample-nested-profile.test [CSSPGO][CSProfileConverter] Remove call target samples when including callee samples into caller. 2022-05-13 09:19:32 -07:00
cs-sample-profile.test [llvm-profdata] Print out section flags for FunctionMetadata section 2021-11-02 17:59:22 -07:00
cs-sample-trimmer.test [CSSPGO] Use nested context-sensitive profile. 2021-12-14 14:40:25 -08:00
csprof-dump.test
cutoff.test
errors.test [InstrProf][Correlate] Verify debug info with llvm-profdata show 2022-01-27 10:11:04 -08:00
forward-compatible.test Add "REQUIRES: zlib" in forward-compatible.test since it handles compressed file. 2021-09-24 15:35:07 -07:00
gcc-gcov-sample-profile.test
general.proftext
hash-mismatch.proftext
header-directives.test
inline-samples.test
input-dir.test
input-filenames.test
instr-remap.test
insufficient-binary-ids-size.test [InstrProfData] Bump the raw profile version to 8 2021-10-05 09:57:56 -07:00
invalid-profdata.test
invalid-profile-gen-zeros.proftext
large-binary-id-size.test [compiler-rt] Fix diagnostic in InstrProfError 2021-11-09 20:30:03 +00:00
lit.local.cfg
malformed-not-space-for-another-header.test [compiler-rt] Fix diagnostic in InstrProfError 2021-11-09 20:30:03 +00:00
malformed-num-counters-zero.test [compiler-rt] Fix diagnostic in InstrProfError 2021-11-09 20:30:03 +00:00
malformed-ptr-to-counter-array.test [InstrProf][NFC] Do not assume size of counter type 2022-01-14 11:29:11 -08:00
memop-size-prof.proftext
memprof-basic.test [llvm-profdata][test] Change -Wl,-no-pie to -no-pie after D127808 2022-06-15 10:46:37 -07:00
memprof-inline.test [llvm-profdata][test] Change -Wl,-no-pie to -no-pie after D127808 2022-06-15 10:46:37 -07:00
memprof-merge.test [llvm-profdata][test] Change -Wl,-no-pie to -no-pie after D127808 2022-06-15 10:46:37 -07:00
memprof-multi.test [llvm-profdata][test] Change -Wl,-no-pie to -no-pie after D127808 2022-06-15 10:46:37 -07:00
memprof-pic.test [memprof] Return an error for unsupported symbolization. 2022-06-27 09:43:26 -07:00
merge-incompatible.test
merge-probe-profile.test [llvm-profdata] Print out section flags for FunctionMetadata section 2021-11-02 17:59:22 -07:00
merge_empty_profile.test
misaligned-binary-ids-size.test [InstrProfData] Bump the raw profile version to 8 2021-10-05 09:57:56 -07:00
multiple-inputs.test
multiple-profdata-merge.test
nocompress.test
overflow-instr.test
overflow-sample.test
overlap.test
overlap_cs.test
overlap_vp.test
profile-symbol-list-compress.test
profile-symbol-list.test
raw-32-bits-be.test [InstrProfData] Bump the raw profile version to 8 2021-10-05 09:57:56 -07:00
raw-32-bits-le.test [InstrProfData] Bump the raw profile version to 8 2021-10-05 09:57:56 -07:00
raw-64-bits-be.test [InstrProfData] Bump the raw profile version to 8 2021-10-05 09:57:56 -07:00
raw-64-bits-le.test [InstrProfData] Bump the raw profile version to 8 2021-10-05 09:57:56 -07:00
raw-magic-but-no-header.test
raw-two-profiles.test [InstrProfData] Bump the raw profile version to 8 2021-10-05 09:57:56 -07:00
roundtrip-compress.test
roundtrip.test
same-filename.test
sample-fs.test [SampleFDO] Set ProfileIsFS bit properly from the internal option 2021-08-25 09:07:34 -07:00
sample-hot-func-list.test [llvm-profdata] Extend support of --topn to sample profiles 2021-09-24 16:42:46 -07:00
sample-overlap.test
sample-profile-basic.test
sample-profile-json.test [llvm-profdata] Support JSON as as an output-only format 2022-08-09 16:24:53 -07:00
sample-remap.test
sample-summary.test
show-covered.test [InstrProf] Add single byte coverage mode 2022-01-27 17:38:55 -08:00
show-instr-level.test
show-prof-info.test
suppl-instr-with-sample.test [llvm-profdata] Unify default cutoffs for detailed summary printing 2022-03-23 14:38:53 -07:00
text-dump.test
text-format-errors.test [memprof] Extend llvm-profdata to display MemProf profile summaries. 2021-11-30 10:45:26 -08:00
threaded-count-mismatch.test
value-prof.proftext
weight-instr.test
weight-sample.test