From: Douglas Gregor Date: Wed, 7 Jul 2010 16:40:34 +0000 (+0000) Subject: When printing statistics for the ASTContext, also print them for its BumpPtrAllocator X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3472430ae163ab0a4d2839db3d9b0d5a54871808;p=clang When printing statistics for the ASTContext, also print them for its BumpPtrAllocator git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107790 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 1439ed14c0..4d950c0bfb 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -275,6 +275,9 @@ void ASTContext::PrintStats() const { fprintf(stderr, " %u/%u implicit destructors created\n", NumImplicitDestructorsDeclared, NumImplicitDestructors); + if (!FreeMemory) + BumpAlloc.PrintStats(); + if (ExternalSource.get()) { fprintf(stderr, "\n"); ExternalSource->PrintStats();