[Lldb-commits] [clang-tools-extra] [compiler-rt] [lldb] [llvm] [Memprof] Adds the option to collect AccessCountHistograms for memprof. (PR #94264)
Teresa Johnson via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 21 15:27:15 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];
----------------
teresajohnson wrote:
Why the " -" in the outputs? I noticed when looking at the text that they look like negative values as a result. Any reason not to just delimit with the space?
https://github.com/llvm/llvm-project/pull/94264
More information about the lldb-commits
mailing list