[cfe-commits] r107790 - /cfe/trunk/lib/AST/ASTContext.cpp
Douglas Gregor
dgregor at apple.com
Wed Jul 7 09:40:35 PDT 2010
Author: dgregor
Date: Wed Jul 7 11:40:34 2010
New Revision: 107790
URL: http://llvm.org/viewvc/llvm-project?rev=107790&view=rev
Log:
When printing statistics for the ASTContext, also print them for its BumpPtrAllocator
Modified:
cfe/trunk/lib/AST/ASTContext.cpp
Modified: cfe/trunk/lib/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=107790&r1=107789&r2=107790&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp (original)
+++ cfe/trunk/lib/AST/ASTContext.cpp Wed Jul 7 11:40:34 2010
@@ -275,6 +275,9 @@
fprintf(stderr, " %u/%u implicit destructors created\n",
NumImplicitDestructorsDeclared, NumImplicitDestructors);
+ if (!FreeMemory)
+ BumpAlloc.PrintStats();
+
if (ExternalSource.get()) {
fprintf(stderr, "\n");
ExternalSource->PrintStats();
More information about the cfe-commits
mailing list