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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 3 21:30:33 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";
----------------
arsenm wrote:

```suggestion
  OS << "TheArgumentInitPool size = " << TheArgumentInitPool.size() << '\n';
```
Single quotes for single characters

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


More information about the llvm-commits mailing list