diff options
author | Easwaran Raman <eraman@google.com> | 2016-02-17 18:18:47 +0000 |
---|---|---|
committer | Easwaran Raman <eraman@google.com> | 2016-02-17 18:18:47 +0000 |
commit | 4309570deb5a5ff2bcaf3ea9ddbefa93de06f5aa (patch) | |
tree | c6c21ebe59c44e793bd2336b5337acc0cef81d1f /llvm/tools/llvm-profdata/llvm-profdata.cpp | |
parent | 3d3ff650d6507506d2b5502c02771312da4f885c (diff) | |
download | bcm5719-llvm-4309570deb5a5ff2bcaf3ea9ddbefa93de06f5aa.tar.gz bcm5719-llvm-4309570deb5a5ff2bcaf3ea9ddbefa93de06f5aa.zip |
Add a profile summary class specific to instrumentation profiles.
Modify ProfileSummary class to make it not instrumented profile specific.
Add a new InstrumentedProfileSummary class that inherits from ProfileSummary.
Differential Revision: http://reviews.llvm.org/D17310
llvm-svn: 261119
Diffstat (limited to 'llvm/tools/llvm-profdata/llvm-profdata.cpp')
-rw-r--r-- | llvm/tools/llvm-profdata/llvm-profdata.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-profdata/llvm-profdata.cpp b/llvm/tools/llvm-profdata/llvm-profdata.cpp index c7760866b80..046e82fa6ed 100644 --- a/llvm/tools/llvm-profdata/llvm-profdata.cpp +++ b/llvm/tools/llvm-profdata/llvm-profdata.cpp @@ -268,7 +268,7 @@ static int showInstrProfile(std::string Filename, bool ShowCounts, if (ShowDetailedSummary && DetailedSummaryCutoffs.empty()) { Cutoffs = {800000, 900000, 950000, 990000, 999000, 999900, 999990}; } - ProfileSummary PS(Cutoffs); + InstrProfSummary PS(Cutoffs); if (std::error_code EC = ReaderOrErr.getError()) exitWithErrorCode(EC, Filename); @@ -352,7 +352,7 @@ static int showInstrProfile(std::string Filename, bool ShowCounts, OS << "Total number of blocks: " << PS.getNumBlocks() << "\n"; OS << "Total count: " << PS.getTotalCount() << "\n"; for (auto Entry : PS.getDetailedSummary()) { - OS << Entry.NumBlocks << " blocks with count >= " << Entry.MinBlockCount + OS << Entry.NumCounts << " blocks with count >= " << Entry.MinCount << " account for " << format("%0.6g", (float)Entry.Cutoff / ProfileSummary::Scale * 100) << " percentage of the total counts.\n"; |