[llvm] [TableGen] Print memory stats in detailed record emitter (PR #106990)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 06:21:50 PDT 2024


================
@@ -92,10 +92,39 @@ struct RecordKeeperImpl {
 
   unsigned AnonCounter;
   unsigned LastRecordID;
+
+  void dumpAllocationStats(raw_ostream &OS) const;
 };
 } // namespace detail
 } // namespace llvm
 
+void detail::RecordKeeperImpl::dumpAllocationStats(raw_ostream &OS) const {
+  // Dump memory allocation related stats.
+  OS << "TheArgumentInitPool size = " << TheArgumentInitPool.size() << "\n";
----------------
jurahul wrote:

Done.

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


More information about the llvm-commits mailing list