[llvm-commits] CVS: llvm/tools/llvm-prof/llvm-prof.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Oct 30 18:35:01 PST 2003
Changes in directory llvm/tools/llvm-prof:
llvm-prof.cpp updated: 1.13 -> 1.14
---
Log message:
never print zero executions blocks
---
Diffs of the changes: (+1 -0)
Index: llvm/tools/llvm-prof/llvm-prof.cpp
diff -u llvm/tools/llvm-prof/llvm-prof.cpp:1.13 llvm/tools/llvm-prof/llvm-prof.cpp:1.14
--- llvm/tools/llvm-prof/llvm-prof.cpp:1.13 Thu Oct 30 18:20:09 2003
+++ llvm/tools/llvm-prof/llvm-prof.cpp Thu Oct 30 18:34:05 2003
@@ -159,6 +159,7 @@
unsigned BlocksToPrint = Counts.size();
if (BlocksToPrint > 20) BlocksToPrint = 20;
for (unsigned i = 0; i != BlocksToPrint; ++i) {
+ if (Counts[i].second == 0) break;
Function *F = Counts[i].first->getParent();
printf("%3d. %5.2f%% %5u/%llu\t%s() - %s\n", i+1,
Counts[i].second/(double)TotalExecutions*100,
More information about the llvm-commits
mailing list