summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-07-07 03:40:24 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-07-07 03:40:24 +0000
commit2cc62093fcb335d0b6a737aac2a0e3c701e1d376 (patch)
tree58f0b827b5e634312d95ea73781d8af6dc3bfdcb /clang/lib/Basic/SourceManager.cpp
parentc2572700943d589f0a9212a678ef5f25bd3efc7f (diff)
downloadbcm5719-llvm-2cc62093fcb335d0b6a737aac2a0e3c701e1d376.tar.gz
bcm5719-llvm-2cc62093fcb335d0b6a737aac2a0e3c701e1d376.zip
For -print-stats, add the number of bytes that SLocEntryTable consumes.
llvm-svn: 134585
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
-rw-r--r--clang/lib/Basic/SourceManager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp
index de709de9a22..9b8d1b4bb03 100644
--- a/clang/lib/Basic/SourceManager.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud