diff options
author | Carl Worth <cworth@cworth.org> | 2006-11-08 05:39:06 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-11-08 06:07:01 -0800 |
commit | 0d1340f7169920c901a0f6d6f8ecb4529e57ada4 (patch) | |
tree | 30ac1be5e595cd2ad75596c379c865cf81b9621d /perf/cairo-stats.h | |
parent | 6d5df0e3e2e9804cede77cfd0d3659bd2d36a918 (diff) | |
download | cairo-0d1340f7169920c901a0f6d6f8ecb4529e57ada4.tar.gz |
perf: Eliminate CAIRO_STATS_MIN_VALID_SAMPLES
We don't need this at this deep level since callers can now
implement this limiting manually since stats.iterations is
now returned. Also, this was interfering with the -i option
to cairo-perf anyway.
Diffstat (limited to 'perf/cairo-stats.h')
-rw-r--r-- | perf/cairo-stats.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/perf/cairo-stats.h b/perf/cairo-stats.h index e394f0384..3f8a988d9 100644 --- a/perf/cairo-stats.h +++ b/perf/cairo-stats.h @@ -28,13 +28,6 @@ #include "cairo-perf.h" -#define CAIRO_STATS_MIN_VALID_SAMPLES 20 - -typedef enum { - CAIRO_STATS_STATUS_SUCCESS, - CAIRO_STATS_STATUS_NEED_MORE_DATA -} cairo_stats_status_t; - typedef struct _cairo_stats { cairo_perf_ticks_t min_ticks; cairo_perf_ticks_t median_ticks; @@ -43,7 +36,7 @@ typedef struct _cairo_stats { int iterations; } cairo_stats_t; -cairo_stats_status_t +void _cairo_stats_compute (cairo_stats_t *stats, cairo_perf_ticks_t *values, int num_values); |