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.c | |
parent | 6d5df0e3e2e9804cede77cfd0d3659bd2d36a918 (diff) |
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.c')
-rw-r--r-- | perf/cairo-stats.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/perf/cairo-stats.c b/perf/cairo-stats.c index b9921d87..ba652d02 100644 --- a/perf/cairo-stats.c +++ b/perf/cairo-stats.c @@ -38,7 +38,7 @@ _cairo_perf_ticks_cmp (const void *_a, const void *_b) return 0; } -cairo_stats_status_t +void _cairo_stats_compute (cairo_stats_t *stats, cairo_perf_ticks_t *values, int num_values) @@ -78,9 +78,6 @@ _cairo_stats_compute (cairo_stats_t *stats, while (i + num_valid < num_values && values[i+num_valid] < outlier_max) num_valid++; - if (num_valid < CAIRO_STATS_MIN_VALID_SAMPLES) - return CAIRO_STATS_STATUS_NEED_MORE_DATA; - stats->iterations = num_valid; stats->min_ticks = values[min_valid]; @@ -103,6 +100,4 @@ _cairo_stats_compute (cairo_stats_t *stats, /* Let's use a std. deviation normalized to the mean for easier * comparison. */ stats->std_dev = sqrt(sum / num_valid) / mean; - - return CAIRO_STATS_STATUS_SUCCESS; } |