diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-08-22 12:23:03 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-08-29 08:08:25 +0100 |
commit | 77c11096169bc8af6aa08241a800a51a2292a27a (patch) | |
tree | 8438c619c62addd9a5f16a40c76645d1f9223ed8 /perf/cairo-perf-trace.c | |
parent | 9c8e60f7718b29051268541d2cfec58e51d8e7b8 (diff) | |
download | cairo-77c11096169bc8af6aa08241a800a51a2292a27a.tar.gz |
[perf] Reset global caches after every trace
I'd disabled this to look at cairo-qt performance, then forgot about it.
Be clean, cleanup globals -- this should fix the huge performance loss
when running in series multiple backends that need separate font caches.
Diffstat (limited to 'perf/cairo-perf-trace.c')
-rw-r--r-- | perf/cairo-perf-trace.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/perf/cairo-perf-trace.c b/perf/cairo-perf-trace.c index 99caa0a7e..f594a28e3 100644 --- a/perf/cairo-perf-trace.c +++ b/perf/cairo-perf-trace.c @@ -596,6 +596,11 @@ cairo_perf_trace (cairo_perf_t *perf, if (target->cleanup) target->cleanup (closure); + + cairo_debug_reset_static_data (); +#if HAVE_FCFINI + FcFini (); +#endif } static void |