From: Argyrios Kyrtzidis Date: Thu, 7 Jul 2011 03:40:24 +0000 (+0000) Subject: For -print-stats, add the number of bytes that SLocEntryTable consumes. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d410e741e8085e109c1dc5886c0acea88a4ca0f4;p=clang For -print-stats, add the number of bytes that SLocEntryTable consumes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134585 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/SourceManager.cpp b/lib/Basic/SourceManager.cpp index de709de9a2..9b8d1b4bb0 100644 --- a/lib/Basic/SourceManager.cpp +++ b/lib/Basic/SourceManager.cpp @@ -1566,7 +1566,9 @@ void SourceManager::PrintStats() const { llvm::errs() << "\n*** Source Manager Stats:\n"; llvm::errs() << FileInfos.size() << " files mapped, " << MemBufferInfos.size() << " mem buffers mapped.\n"; - llvm::errs() << SLocEntryTable.size() << " SLocEntry's allocated, " + llvm::errs() << SLocEntryTable.size() << " SLocEntry's allocated (" + << SLocEntryTable.capacity()*sizeof(SrcMgr::SLocEntry) + << " bytes of capacity), " << NextOffset << "B of Sloc address space used.\n"; unsigned NumLineNumsComputed = 0;