projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85354d4
)
[PGO] In llvm-profdata text dump, add comment lines as annotations
author
Xinliang David Li
<davidxl@google.com>
Mon, 23 Nov 2015 22:31:22 +0000
(22:31 +0000)
committer
Xinliang David Li
<davidxl@google.com>
Mon, 23 Nov 2015 22:31:22 +0000
(22:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253930
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ProfileData/InstrProfWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/ProfileData/InstrProfWriter.cpp
b/lib/ProfileData/InstrProfWriter.cpp
index
1c97b1a
..
f9cc2af
100644
(file)
--- a/
lib/ProfileData/InstrProfWriter.cpp
+++ b/
lib/ProfileData/InstrProfWriter.cpp
@@
-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";