Chris Wilson
4ccfd474a3
[perf] Switch to using clock_gettime()
...
Try using clock_gettime() for a high resolution stable time source in
preference to the potentially unstable TSC.
2009-06-06 13:37:00 +01:00
M Joonas Pihlaja
55e06745a6
[perf-suite] Explicitly read the results of rdtsc from edx:eax.
...
The =A format used to read a 64 bit result from rdtsc works on x86,
but not on x86-64.
2008-09-25 00:17:57 +03:00
Behdad Esfahbod
a7951081f1
Move _GNU_SOURCE declarations to where it's used
...
Such that we don't rely on more GNU extensions accidentally.
2008-09-02 21:54:09 -04:00
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