forked from OSchip/llvm-project
For -print-stats, add the number of bytes that SLocEntryTable consumes.
llvm-svn: 134585
This commit is contained in:
parent
c257270094
commit
2cc62093fc
|
@ -1566,7 +1566,9 @@ void SourceManager::PrintStats() const {
|
||||||
llvm::errs() << "\n*** Source Manager Stats:\n";
|
llvm::errs() << "\n*** Source Manager Stats:\n";
|
||||||
llvm::errs() << FileInfos.size() << " files mapped, " << MemBufferInfos.size()
|
llvm::errs() << FileInfos.size() << " files mapped, " << MemBufferInfos.size()
|
||||||
<< " mem buffers mapped.\n";
|
<< " 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";
|
<< NextOffset << "B of Sloc address space used.\n";
|
||||||
|
|
||||||
unsigned NumLineNumsComputed = 0;
|
unsigned NumLineNumsComputed = 0;
|
||||||
|
|
Loading…
Reference in New Issue