summaryrefslogtreecommitdiff
path: root/perf/cairo-perf.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-05-08 09:00:56 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2008-06-13 21:34:42 +0100
commitac44817c4a8464ed5c665cc8b20d1463cf8a5de3 (patch)
tree9e8e6b4fbe9898ddd087083156cf1c465b85623c /perf/cairo-perf.h
parent335ed745898a3e110a4ffd1abd8f55edfb407639 (diff)
downloadcairo-ac44817c4a8464ed5c665cc8b20d1463cf8a5de3.tar.gz
[cairo-perf] Only allocate arrays once.
Store the array of times on the cairo_perf_t context to avoid reallocating it for every perf-case.
Diffstat (limited to 'perf/cairo-perf.h')
-rw-r--r--perf/cairo-perf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/perf/cairo-perf.h b/perf/cairo-perf.h
index 1ada06d5b..753f0455c 100644
--- a/perf/cairo-perf.h
+++ b/perf/cairo-perf.h
@@ -71,6 +71,9 @@ typedef struct _cairo_perf {
unsigned int num_names;
/* Stuff used internally */
+ cairo_perf_ticks_t *times;
+ cairo_boilerplate_target_t **targets;
+ int num_targets;
cairo_boilerplate_target_t *target;
unsigned int test_number;
unsigned int size;