[Lldb-commits] [clang-tools-extra] [compiler-rt] [lldb] [llvm] [Memprof] Adds the option to collect AccessCountHistograms for memprof. (PR #94264)

Matthew Weingarten via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 24 08:32:10 PDT 2024


================
@@ -124,6 +124,13 @@ struct PortableMemInfoBlock {
   OS << "        " << #Name << ": " << Name << "\n";
 #include "llvm/ProfileData/MIBEntryDef.inc"
 #undef MIBEntryDef
+    if (AccessHistogramSize > 0) {
+      OS << "        " << "AccessHistogramValues" << ":";
+      for (uint32_t I = 0; I < AccessHistogramSize; ++I) {
+        OS << " -" << ((uint64_t *)AccessHistogram)[I];
----------------
mattweingarten wrote:

I though only having space delimiting did not produce valid yaml, I double checked and was wrong. Changed to space delimiting, thanks!

https://github.com/llvm/llvm-project/pull/94264


More information about the lldb-commits mailing list