Add an overall percentage display, and use a float format for counts

Estimated hours taken: 0.1

tools/ctor_rep_stats:
	Add an overall percentage display, and use a float format for counts
	to avoid clipping at 2^31-1(!).
This commit is contained in:
Zoltan Somogyi
1999-10-10 02:53:06 +00:00
parent 9c5f356c1c
commit 463d2cbced

View File

@@ -10,9 +10,9 @@ END {
{
for (r in rep)
{
printf "%-8s %-20s %15d (%5.2f%%)\n", p, r ":", kind[p "-" r], (100 * kind[p "-" r]) / pred[p];
printf "%-8s %-20s %15.0f (%5.2f%%, %5.2f%%)\n", p, r ":", kind[p "-" r], (100 * kind[p "-" r]) / pred[p], (100 * kind[p "-" r]) / all;
}
printf "%-29s %15d (%5.2f%%)\n\n", p ":", pred[p], (100 * pred[p]) / all;
printf "%-29s %15.0f (%7s %5.2f%%)\n\n", p ":", pred[p], "", (100 * pred[p]) / all;
}
}