Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions llvm/lib/IR/ProfileSummary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,11 @@ void ProfileSummary::printSummary(raw_ostream &OS) const {
void ProfileSummary::printDetailedSummary(raw_ostream &OS) const {
OS << "Detailed summary:\n";
for (const auto &Entry : DetailedSummary) {
OS << format("%lu blocks (%.2f%%) with count >= %lu account for %0.6g%% of "
"the total counts.\n",
Entry.NumCounts,
NumCounts ? (100.f * Entry.NumCounts / NumCounts) : 0,
Entry.MinCount, 100.f * Entry.Cutoff / Scale);
OS << Entry.NumCounts << " blocks "
<< format("(%.2f%%)",
NumCounts ? (100.f * Entry.NumCounts / NumCounts) : 0)
<< " with count >= " << Entry.MinCount << " account for "
<< format("%0.6g", 100.f * Entry.Cutoff / Scale)
<< "% of the total counts.\n";
}
}
2 changes: 0 additions & 2 deletions llvm/test/tools/llvm-profdata/general.proftext
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# FIXME: Somehow this is failing on windows after https://github.com/llvm/llvm-project/pull/105915
# XFAIL: system-windows
# RUN: llvm-profdata merge -sparse=true %s -o %t.profdata

# RUN: llvm-profdata merge -sparse=false %s -o %t.profdata.dense
Expand Down
Loading