diff options
| author | Teresa Johnson <tejohnson@google.com> | 2024-11-15 08:24:44 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-15 08:24:44 -0800 |
| commit | 9513f2fdf2ad50f55726154a6b6a4aa463bc457f (patch) | |
| tree | 738757d593af34a24cc6fddb5c3881386b6f9bd0 /llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp | |
| parent | f6e1d64458130643377511baeec430de67ddddfb (diff) | |
[MemProf] Print full context hash when reporting hinted bytes (#114465)
Improve the information printed when -memprof-report-hinted-sizes is
enabled. Now print the full context hash computed from the original
profile, similar to what we do when reporting matching statistics. This
will make it easier to correlate with the profile.
Note that the full context hash must be computed at profile match time
and saved in the metadata and summary, because we may trim the context
during matching when it isn't needed for distinguishing hotness.
Similarly, due to the context trimming, we may have more than one full
context id and total size pair per MIB in the metadata and summary,
which now get a list of these pairs.
Remove the old aggregate size from the metadata and summary support.
One other change from the prior support is that we no longer write the
size information into the combined index for the LTO backends, which
don't use this information, which reduces unnecessary bloat in
distributed index files.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp')
| -rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp b/llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp index b7ed9cdf6314..8f79ccdb9ff7 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp @@ -328,6 +328,7 @@ GetCodeName(unsigned CodeID, unsigned BlockID, STRINGIFY_CODE(FS, COMBINED_CALLSITE_INFO) STRINGIFY_CODE(FS, COMBINED_ALLOC_INFO) STRINGIFY_CODE(FS, STACK_IDS) + STRINGIFY_CODE(FS, ALLOC_CONTEXT_IDS) } case bitc::METADATA_ATTACHMENT_ID: switch (CodeID) { |
