For -print-stats, add the number of bytes that SLocEntryTable consumes.

llvm-svn: 134585
This commit is contained in:
Argyrios Kyrtzidis 2011-07-07 03:40:24 +00:00
parent c257270094
commit 2cc62093fc
1 changed files with 3 additions and 1 deletions

View File

@ -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;