[PGO] In llvm-profdata text dump, add comment lines as annotations

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253930 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Xinliang David Li 2015-11-23 22:31:22 +00:00
parent 85354d4e30
commit 54daffcbaa

View File

@ -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";