summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ProfileData
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2015-11-23 22:31:22 +0000
committerXinliang David Li <davidxl@google.com>2015-11-23 22:31:22 +0000
commitc667683d2e0d778a03a40ccf08968cf11436f2e2 (patch)
treed8bcafcfc5a0cee27046fd0f3c9ddccf5ed97d8d /llvm/lib/ProfileData
parent5a59152fd0e08120876f50f286dbec86f63ec058 (diff)
downloadbcm5719-llvm-c667683d2e0d778a03a40ccf08968cf11436f2e2.tar.gz
bcm5719-llvm-c667683d2e0d778a03a40ccf08968cf11436f2e2.zip
[PGO] In llvm-profdata text dump, add comment lines as annotations
llvm-svn: 253930
Diffstat (limited to 'llvm/lib/ProfileData')
-rw-r--r--llvm/lib/ProfileData/InstrProfWriter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/InstrProfWriter.cpp b/llvm/lib/ProfileData/InstrProfWriter.cpp
index 1c97b1ad0d3..f9cc2afe3da 100644
--- a/llvm/lib/ProfileData/InstrProfWriter.cpp
+++ b/llvm/lib/ProfileData/InstrProfWriter.cpp
@@ -173,7 +173,10 @@ void InstrProfWriter::write(raw_fd_ostream &OS) {
void InstrProfWriter::writeRecordInText(const InstrProfRecord &Func,
raw_fd_ostream &OS) {
- OS << Func.Name << "\n" << Func.Hash << "\n" << Func.Counts.size() << "\n";
+ OS << Func.Name << "\n";
+ OS << "# Func Hash:\n" << Func.Hash << "\n";
+ OS << "# Num Counters:\n" <<Func.Counts.size() << "\n";
+ OS << "# Counter Values:\n";
for (uint64_t Count : Func.Counts)
OS << Count << "\n";
OpenPOWER on IntegriCloud