[llvm] r253930 - [PGO] In llvm-profdata text dump, add comment lines as annotations
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 23 14:31:22 PST 2015
Author: davidxl
Date: Mon Nov 23 16:31:22 2015
New Revision: 253930
URL: http://llvm.org/viewvc/llvm-project?rev=253930&view=rev
Log:
[PGO] In llvm-profdata text dump, add comment lines as annotations
Modified:
llvm/trunk/lib/ProfileData/InstrProfWriter.cpp
Modified: llvm/trunk/lib/ProfileData/InstrProfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ProfileData/InstrProfWriter.cpp?rev=253930&r1=253929&r2=253930&view=diff
==============================================================================
--- llvm/trunk/lib/ProfileData/InstrProfWriter.cpp (original)
+++ llvm/trunk/lib/ProfileData/InstrProfWriter.cpp Mon Nov 23 16:31:22 2015
@@ -173,7 +173,10 @@ void InstrProfWriter::write(raw_fd_ostre
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";
More information about the llvm-commits
mailing list