[llvm] [memprof] Use CallStackRadixTreeBuilder in the V3 format (PR #94708)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 6 23:20:13 PDT 2024


================
@@ -900,9 +900,17 @@ struct LinearCallStackIdConverter {
     Frames.reserve(NumFrames);
     for (; NumFrames; --NumFrames) {
       LinearFrameId Elem =
-          support::endian::readNext<LinearFrameId, llvm::endianness::little>(
-              Ptr);
+          support::endian::read<LinearFrameId, llvm::endianness::little>(Ptr);
+      // Follow a pointer to the parent, if any.
----------------
teresajohnson wrote:

Maybe point to the comment block further down that describes the radix tree format.

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


More information about the llvm-commits mailing list