[clang] Improve SourceManager::PrintStats()
This fixes a typo ("SLocEntry's" -> "SLocEntries"), fixes capitalization ("Sloc" -> "SLoc") and adds extra information (capacity in bytes of `LoadedSLocEntryTable`).
This commit is contained in:
@@ -2121,14 +2121,16 @@ 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() << LocalSLocEntryTable.size() << " local SLocEntry's allocated ("
|
||||
llvm::errs() << LocalSLocEntryTable.size() << " local SLocEntries allocated ("
|
||||
<< llvm::capacity_in_bytes(LocalSLocEntryTable)
|
||||
<< " bytes of capacity), "
|
||||
<< NextLocalOffset << "B of Sloc address space used.\n";
|
||||
<< " bytes of capacity), " << NextLocalOffset
|
||||
<< "B of SLoc address space used.\n";
|
||||
llvm::errs() << LoadedSLocEntryTable.size()
|
||||
<< " loaded SLocEntries allocated, "
|
||||
<< " loaded SLocEntries allocated ("
|
||||
<< llvm::capacity_in_bytes(LoadedSLocEntryTable)
|
||||
<< " bytes of capacity), "
|
||||
<< MaxLoadedOffset - CurrentLoadedOffset
|
||||
<< "B of Sloc address space used.\n";
|
||||
<< "B of SLoc address space used.\n";
|
||||
|
||||
unsigned NumLineNumsComputed = 0;
|
||||
unsigned NumFileBytesMapped = 0;
|
||||
|
||||
Reference in New Issue
Block a user