mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-11 13:37:07 +00:00
[PGO] In llvm-profdata text dump, add comment lines as annotations
llvm-svn: 253930
This commit is contained in:
parent
af76cac3cc
commit
1226a008ae
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user