- printf("%2.1f %6u %6u %6u (%2d %2d %2d)\n", fps, gpu, spu, rem,
- gpu * 100 / total, spu * 100 / total, rem * 100 / total);
+ if (--print_counter < 0) {
+ printf(" ");
+ for (i = 1; i < PCNT_CNT; i++)
+ printf("%5s ", pcnt_names[i]);
+ printf("%5s\n", "rem");
+ print_counter = 30;
+ }
+
+ printf("%4.1f ", fps);
+ for (i = 1; i < PCNT_CNT; i++)
+ printf("%5u ", pcounters[i]);
+ printf("%5u (", rem);
+ for (i = 1; i < PCNT_CNT; i++)
+ printf("%2u ", pcounters[i] * 100 / total);
+ printf("%2u) %u\n", rem * 100 / total, total);