llvm-project/llvm/lib/ProfileData
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
..
Coverage [llvm-cov] Improve error message by printing the object file name that produces error 2022-07-21 11:26:51 -07:00
CMakeLists.txt Reland "[memprof] Extend the index prof format to include memory profiles." 2022-02-17 22:09:52 -08:00
GCOV.cpp [llvm-cov gcov] Fix calculating coverage of template functions 2022-03-15 20:46:22 +04:00
InstrProf.cpp [llvm] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 11:24:15 -07:00
InstrProfCorrelator.cpp [llvm] Use value_or instead of getValueOr (NFC) 2022-06-18 23:07:11 -07:00
InstrProfReader.cpp [PGO] Report number of counts being dropped when a hash-mismatch happens 2022-07-15 14:53:59 -07:00
InstrProfWriter.cpp [memprof] Deduplicate and outline frame storage in the memprof profile. 2022-04-08 09:15:20 -07:00
MemProf.cpp [memprof] Deduplicate and outline frame storage in the memprof profile. 2022-04-08 09:15:20 -07:00
ProfileSummaryBuilder.cpp Remove unneeded cl::ZeroOrMore for cl::opt options 2022-06-04 00:10:42 -07:00
RawMemProfReader.cpp [memprof] Return an error for unsupported symbolization. 2022-06-27 09:43:26 -07:00
SampleProf.cpp ManagedStatic: remove many straightforward uses in llvm 2022-07-10 10:29:15 +02:00
SampleProfReader.cpp [llvm-profdata] Support JSON as as an output-only format 2022-08-09 16:24:53 -07:00
SampleProfWriter.cpp [Support] Change compression::zlib::{compress,uncompress} to use uint8_t * 2022-07-13 16:26:54 -07:00