Commit graph

6 commits

Author SHA1 Message Date
Carl Worth
b866069210 perf: Handle 32-bit wraparound of performance counter 2006-09-06 05:07:08 -07:00
Carl Worth
b64645c567 perf: Fix cairo_perf_ticks_per_second to avoid wraparound 2006-09-06 03:32:07 -07:00
Carl Worth
d9082d59db Prefer CPU performance counters (if available) over gettimeofday.
I've seen this improve the std. deviation often by a factor of 2
and occasionally up to a factor of 10. It is sometimes not much
better, but never seems to be appreciably worse compared to using
gettimeofday.

Thanks to David A. Schleef <ds@schleef.org> and his liboil for
the implementation.
2006-09-06 01:37:13 -07:00
Carl Worth
d31037e421 perf: Report times not rates. Interface in integers not doubles. 2006-09-06 00:15:49 -07:00
Carl Worth
9d0d38e0a0 perf: Rename functions in line with cairo's naming guidelines 2006-09-05 22:58:33 -07:00
Carl Worth
9f51fcc888 perf: Fold cairo-perf-timer.h into cairo-perf.h 2006-09-05 22:56:00 -07:00
Renamed from perf/cairo-perf-timer-posix.c (Browse further)