diff options
author | Xinliang David Li <davidxl@google.com> | 2015-11-23 22:31:22 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2015-11-23 22:31:22 +0000 |
commit | c667683d2e0d778a03a40ccf08968cf11436f2e2 (patch) | |
tree | d8bcafcfc5a0cee27046fd0f3c9ddccf5ed97d8d /llvm/lib/ProfileData | |
parent | 5a59152fd0e08120876f50f286dbec86f63ec058 (diff) | |
download | bcm5719-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.cpp | 5 |
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"; |