aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedThreadPythonInterface.h
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-08-09 16:24:53 -0700
committerKazu Hirata <kazu@google.com>2022-08-09 16:24:53 -0700
commita044d0491efeb821f1f23a935515692984b21ad5 (patch)
treea98da0b39e8c4fb6ff95383d5504fa4de58c32ed /lldb/source/Plugins/ScriptInterpreter/Python/ScriptedThreadPythonInterface.h
parentdf9a23e2feda18f0308b6d4dbd591ebe6b605aa4 (diff)
downloadllvm-a044d0491efeb821f1f23a935515692984b21ad5.zip
llvm-a044d0491efeb821f1f23a935515692984b21ad5.tar.gz
llvm-a044d0491efeb821f1f23a935515692984b21ad5.tar.bz2
[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
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptedThreadPythonInterface.h')
0 files changed, 0 insertions, 0 deletions