[PATCH] D79291: [llvm-profdata] Support -detailed-summary for Sample Profile
Wei Mi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 4 14:32:24 PDT 2020
wmi added inline comments.
================
Comment at: llvm/lib/IR/ProfileSummary.cpp:209-215
+void ProfileSummary::printSummary(raw_ostream &OS) {
+ OS << "Total functions: " << NumFunctions << "\n";
+ OS << "Maximum function count: " << MaxFunctionCount << "\n";
+ OS << "Maximum sample count: " << MaxCount << "\n";
+}
+
+void ProfileSummary::printDetailedSummary(raw_ostream &OS) {
----------------
Why we need printSummary and printDetailedSummary instead of one print function? printSummary seems only print very limited information in ProfileSummary.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79291/new/
https://reviews.llvm.org/D79291
More information about the llvm-commits
mailing list