mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 15:39:06 +00:00
[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:
parent
85354d4e30
commit
54daffcbaa
@ -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