diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-07-07 03:40:24 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-07-07 03:40:24 +0000 |
commit | d410e741e8085e109c1dc5886c0acea88a4ca0f4 (patch) | |
tree | 3c064b983fe7a207ccb2bce15954d6337435ad3e /lib/Basic/SourceManager.cpp | |
parent | e4f22adc862ca3e689c5cefa06dc52c480236805 (diff) |
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
Diffstat (limited to 'lib/Basic/SourceManager.cpp')
-rw-r--r-- | lib/Basic/SourceManager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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; |