[llvm] [MemProf] Fix reporting with -memprof-matching-cold-threshold (PR #173327)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 26 12:04:41 PST 2025
================
@@ -75,8 +75,9 @@ class CallStackTrie {
// If the user has requested reporting of hinted sizes, keep track of the
// associated full stack id and profiled sizes. Can have more than one
// after trimming (e.g. when building from metadata). This is only placed on
- // the last (root-most) trie node for each allocation context.
- std::vector<ContextTotalSize> ContextSizeInfo;
+ // the last (root-most) trie node for each allocation context. Also
+ // track the original allocation type of the context.
+ std::vector<std::pair<ContextTotalSize, AllocationType>> ContextInfo;
----------------
teresajohnson wrote:
done
https://github.com/llvm/llvm-project/pull/173327
More information about the llvm-commits
mailing list