[PGO] In llvm-profdata text dump, add comment lines as annotations
llvm-svn: 253930
diff --git a/llvm/lib/ProfileData/InstrProfWriter.cpp b/llvm/lib/ProfileData/InstrProfWriter.cpp
index 1c97b1a..f9cc2af 100644
--- a/llvm/lib/ProfileData/InstrProfWriter.cpp
+++ b/llvm/lib/ProfileData/InstrProfWriter.cpp
@@ -173,7 +173,10 @@
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";