diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-05-08 09:00:56 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-06-13 21:34:42 +0100 |
commit | ac44817c4a8464ed5c665cc8b20d1463cf8a5de3 (patch) | |
tree | 9e8e6b4fbe9898ddd087083156cf1c465b85623c /perf/cairo-perf.h | |
parent | 335ed745898a3e110a4ffd1abd8f55edfb407639 (diff) | |
download | cairo-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.h | 3 |
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; |