summaryrefslogtreecommitdiff
path: root/packages/cairo/cairo-1.4.10/stats.patch
diff options
context:
space:
mode:
authorLeon Woestenberg <leon.woestenberg@gmail.com>2007-10-24 23:10:06 +0000
committerLeon Woestenberg <leon.woestenberg@gmail.com>2007-10-24 23:10:06 +0000
commit4ccb4313d27e2c243a834e27e9fff518ec8c4da1 (patch)
tree270657fa3c75506d5edb30cb82e74a9656bd69cd /packages/cairo/cairo-1.4.10/stats.patch
parent69edb639ee6a6a82da29d74cb52c235e13c9fd30 (diff)
cairo: Add 1.4.10 with cairo-perf stat patch.
Diffstat (limited to 'packages/cairo/cairo-1.4.10/stats.patch')
-rw-r--r--packages/cairo/cairo-1.4.10/stats.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/packages/cairo/cairo-1.4.10/stats.patch b/packages/cairo/cairo-1.4.10/stats.patch
new file mode 100644
index 0000000000..63df25c942
--- /dev/null
+++ b/packages/cairo/cairo-1.4.10/stats.patch
@@ -0,0 +1,33 @@
+See cairo mailing list 15-10-2007 patch by Soeren Sandmann.
+Fixes unreliable results for cairo-perf.
+
+diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c
+index 360f2dd..a8d7abc 100644
+--- a/perf/cairo-perf.c
++++ b/perf/cairo-perf.c
+@@ -166,22 +166,11 @@ cairo_perf_run (cairo_perf_t *perf,
+ cairo_perf_ticks_per_second () / 1000.0);
+ printf (" %lld", times[i]);
+ } else {
+- if (i > 0) {
+- _cairo_stats_compute (&stats, times, i+1);
+-
+- if (stats.std_dev <= CAIRO_PERF_LOW_STD_DEV &&
+- ! perf->exact_iterations)
+- {
+- low_std_dev_count++;
+- if (low_std_dev_count >= CAIRO_PERF_STABLE_STD_DEV_COUNT)
+- break;
+- } else {
+- low_std_dev_count = 0;
+- }
+- }
+ }
+ }
+
++ _cairo_stats_compute (&stats, times, i+1);
++
+ if (perf->raw) {
+ printf ("\n");
+ } else {
+diff --git a/perf/cairo-stats.c b/perf/cairo-stats.c