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

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 24 00:24:23 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)");
----------------
usx95 wrote:

nit: It may also be helpful to add some background on why this is important to track.

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


More information about the cfe-commits mailing list