summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp
diff options
context:
space:
mode:
authorSnehasish Kumar <snehasishk@google.com>2022-02-11 16:28:33 -0800
committerSnehasish Kumar <snehasishk@google.com>2022-02-14 09:53:45 -0800
commit43c2348c5b926df6bdbc5b70efaa35ecdefe12d5 (patch)
treeecd3def2c1d2ef0043c2eb5bbfb3ac7982730867 /llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp
parent14cc41a0206a85d350767f8aff6e02bd4e7dd5d6 (diff)
[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. Differential Revision: https://reviews.llvm.org/D118653
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp')
0 files changed, 0 insertions, 0 deletions