[clang] [SourceManager] Expose max usage of source location space as a Statistic (PR #96292)

Ilya Biryukov via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 24 01:35:30 PDT 2024


================
@@ -46,6 +47,12 @@ using namespace clang;
 using namespace SrcMgr;
 using llvm::MemoryBuffer;
 
+#define DEBUG_TYPE "source-manager"
+
+STATISTIC(
+    MaxUsedSLocBytes,
+    "Maximum number of bytes used by source locations (both loaded and local)");
----------------
ilya-biryukov wrote:

Done. I added a comment because the description string is something that tends to rather look like a one-liner.

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


More information about the cfe-commits mailing list