[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:27:06 PDT 2024
================
@@ -610,13 +670,33 @@ RawMemProfReader::peekBuildIds(MemoryBuffer *DataBuffer) {
return BuildIds.takeVector();
}
+// FIXME: Add a schema for serializing similiar to IndexedMemprofReader. This
+// will help being able to deserialize different versions raw memprof versions
+// more easily.
+llvm::SmallVector<std::pair<uint64_t, MemInfoBlock>>
+RawMemProfReader::readMemInfoBlocks(const char *Ptr) {
+ if (MemprofRawVersion == 3ULL) {
+ errs() << "Reading V3\n";
----------------
mattweingarten wrote:
done.
https://github.com/llvm/llvm-project/pull/94264
More information about the lldb-commits
mailing list