Ignore:
Timestamp:
Dec 7, 2009, 2:05:31 AM (10 years ago)
Author:
Sam Hocevar
Message:

Increase profiling timers' sliding mean accuracy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/prof.c

    r4094 r4095  
    4646             total += stats[i]->itable[j];
    4747
    48          fprintf(stderr, " %s: last %i mean %i sliding mean %i\n",
     48         fprintf(stderr, " %s: last %i sliding mean %i smoothed mean %i\n",
    4949                 stats[i]->name, stats[i]->itable[0],
    5050                 (int)((total + STAT_VALUES / 2) / STAT_VALUES),
    51                  stats[i]->imean);
    52 /*fprintf(stderr, "%i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i\n",
    53 stats[i]->itable[0], stats[i]->itable[1], stats[i]->itable[2],
    54 stats[i]->itable[3], stats[i]->itable[4], stats[i]->itable[5],
    55 stats[i]->itable[6], stats[i]->itable[7], stats[i]->itable[8],
    56 stats[i]->itable[9], stats[i]->itable[10], stats[i]->itable[11],
    57 stats[i]->itable[12], stats[i]->itable[13], stats[i]->itable[14],
    58 stats[i]->itable[15], stats[i]->itable[16], stats[i]->itable[17],
    59 stats[i]->itable[18], stats[i]->itable[19]);*/
     51                 (int)(stats[i]->imean / 64));
    6052    }
    6153
Note: See TracChangeset for help on using the changeset viewer.