diff options
author | Mingming Liu <mingmingl@google.com> | 2024-02-21 20:59:42 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-21 20:59:42 -0800 |
commit | db7e9e68411de074dee78c92657e983da4b89500 (patch) | |
tree | 013f2157e1f904f82014096e3ee8805808f32a58 /lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp | |
parent | 815644b4dd882ade2e5649d4f97c3dd6f7aea200 (diff) | |
download | llvm-db7e9e68411de074dee78c92657e983da4b89500.zip llvm-db7e9e68411de074dee78c92657e983da4b89500.tar.gz llvm-db7e9e68411de074dee78c92657e983da4b89500.tar.bz2 |
[TypeProf][InstrPGO] Introduce raw and instr profile format change for type profiling. (#81691)
* Raw profile format
- Header: records the byte size of compressed vtable names, and the
number of profiled vtable entries (call it `VTableProfData`). Header
also records padded bytes of each section.
- Payload: adds a section for compressed vtable names, and a section to
store `VTableProfData`. Both sections are padded so the size is a
multiple of 8.
* Indexed profile format
- Header: records the byte offset of compressed vtable names.
- Payload: adds a section to store compressed vtable names. This section
is used by `llvm-profdata` to show the list of vtables profiled for an
instrumented site.
[The originally reviewed
patch](https://github.com/llvm/llvm-project/pull/66825) will have
profile reader/write change and llvm-profdata change.
- To ensure this PR has all the necessary profile format change along
with profile version bump, created a copy of the originally reviewed
patch in https://github.com/llvm/llvm-project/pull/80761. The copy
doesn't have profile format change, but it has the set of tests which
covers type profile generation, profile read and profile merge. Tests
pass there.
rfc in
https://discourse.llvm.org/t/rfc-dynamic-type-profiling-and-optimizations-in-llvm/74600
---------
Co-authored-by: modiking <modiking213@gmail.com>
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp')
0 files changed, 0 insertions, 0 deletions