aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-profdata/llvm-profdata.cpp
diff options
context:
space:
mode:
authorEllis Hoag <ellis.sparky.hoag@gmail.com>2025-01-23 09:30:23 -0800
committerGitHub <noreply@github.com>2025-01-23 09:30:23 -0800
commita2453097e3b4010162efacb4e7edcb121da8607f (patch)
tree2007be6bb9d437d327b182176b237834ae0991c3 /llvm/tools/llvm-profdata/llvm-profdata.cpp
parentcaf0540b91b0fee31353dc7049ae836e0f814cff (diff)
downloadllvm-a2453097e3b4010162efacb4e7edcb121da8607f.zip
llvm-a2453097e3b4010162efacb4e7edcb121da8607f.tar.gz
llvm-a2453097e3b4010162efacb4e7edcb121da8607f.tar.bz2
[llvm-profdata] Add block percent to detailed summary (#105915)
Diffstat (limited to 'llvm/tools/llvm-profdata/llvm-profdata.cpp')
-rw-r--r--llvm/tools/llvm-profdata/llvm-profdata.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm/tools/llvm-profdata/llvm-profdata.cpp b/llvm/tools/llvm-profdata/llvm-profdata.cpp
index ffc481f..560210e 100644
--- a/llvm/tools/llvm-profdata/llvm-profdata.cpp
+++ b/llvm/tools/llvm-profdata/llvm-profdata.cpp
@@ -3012,15 +3012,13 @@ static int showInstrProfile(ShowFormat SFormat, raw_fd_ostream &OS) {
OS << "\n";
if (ShowAllFunctions || !FuncNameFilter.empty())
OS << "Functions shown: " << ShownFunctions << "\n";
- OS << "Total functions: " << PS->getNumFunctions() << "\n";
+ PS->printSummary(OS);
if (ShowValueCutoff > 0) {
OS << "Number of functions with maximum count (< " << ShowValueCutoff
<< "): " << BelowCutoffFunctions << "\n";
OS << "Number of functions with maximum count (>= " << ShowValueCutoff
<< "): " << PS->getNumFunctions() - BelowCutoffFunctions << "\n";
}
- OS << "Maximum function count: " << PS->getMaxFunctionCount() << "\n";
- OS << "Maximum internal block count: " << PS->getMaxInternalCount() << "\n";
if (TopNFunctions) {
std::vector<std::pair<std::string, uint64_t>> SortedHottestFuncs;
@@ -3050,11 +3048,8 @@ static int showInstrProfile(ShowFormat SFormat, raw_fd_ostream &OS) {
showValueSitesStats(OS, IPVK_MemOPSize, VPStats[IPVK_MemOPSize]);
}
- if (ShowDetailedSummary) {
- OS << "Total number of blocks: " << PS->getNumCounts() << "\n";
- OS << "Total count: " << PS->getTotalCount() << "\n";
+ if (ShowDetailedSummary)
PS->printDetailedSummary(OS);
- }
if (ShowBinaryIds)
if (Error E = Reader->printBinaryIds(OS))