diff options
author | Snehasish Kumar <snehasishk@google.com> | 2022-02-17 16:01:31 -0800 |
---|---|---|
committer | Snehasish Kumar <snehasishk@google.com> | 2022-02-17 22:09:52 -0800 |
commit | 0a4184909a8c4861142acec0f59a4a3373f39b09 (patch) | |
tree | 5c55aad9f312f264969d715807b151341a2ce03e /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 1ece3eeeb79e766d4f9e0b5044db2d72946f785d (diff) | |
download | llvm-0a4184909a8c4861142acec0f59a4a3373f39b09.zip llvm-0a4184909a8c4861142acec0f59a4a3373f39b09.tar.gz llvm-0a4184909a8c4861142acec0f59a4a3373f39b09.tar.bz2 |
Reland "[memprof] Extend the index prof format to include memory profiles."
This patch adds support for optional memory profile information to be
included with and indexed profile. The indexed profile header adds a new
field which points to the offset of the memory profile section (if
present) in the indexed profile. For users who do not utilize this
feature the only overhead is a 64-bit offset in the header.
The memory profile section contains (1) profile metadata describing the
information recorded for each entry (2) an on-disk hashtable containing
the profile records indexed via llvm::md5(function_name). We chose to
introduce a separate hash table instead of the existing one since the
indexing for the instrumented fdo hash table is based on a CFG hash
which itself is perturbed by memprof instrumentation.
This commit also includes the changes reviewed separately in D120093.
Differential Revision: https://reviews.llvm.org/D120103
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions