Commit graph

10 commits

Author SHA1 Message Date
Mathias Hasselmann
abac4d251d [cairo-perf] Use full 64 bit of the clock cycle counters to avoid overflows 2007-03-24 00:22:37 +01:00
Carl Worth
d7c2f7e2d7 perf: Rename finalize to synchronize as it is used in both start() and stop() now 2006-10-05 15:14:14 -07:00
Carl Worth
8af5e14fd8 perf: Do backend synchronization in cairo_perf_timer_start as well as cairo_perf_timer_stop 2006-10-05 15:10:45 -07:00
Carl Worth
cb6aed0a81 perf: Make xlib testing wait for the X server to finish rendering.
We do this by adding a new cairo_perf_timer_set_finalize function and
in the case of the xlib backend passing a callback to that function
that does a 1x1 XGetImage.
2006-09-11 10:59:38 -07:00
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)