summaryrefslogtreecommitdiff
path: root/perf/cairo-analyse-trace.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-08-20 09:36:07 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-08-20 11:51:50 +0100
commit0efdc8d27e40c72b426407b83291a28e5553ffa7 (patch)
treec5d9155786b2f91d0af6c6d8f41b5d288491fad0 /perf/cairo-analyse-trace.c
parent713c8069bea1f2391679cbfa611727703a78eb7e (diff)
downloadcairo-0efdc8d27e40c72b426407b83291a28e5553ffa7.tar.gz
observer: record all operations and their timings
The immediate use of this is to print out the slowest operation of each type in a replayable manner. A continuing demonstration of how we may analyse traces... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'perf/cairo-analyse-trace.c')
-rw-r--r--perf/cairo-analyse-trace.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/perf/cairo-analyse-trace.c b/perf/cairo-analyse-trace.c
index 206ff8612..b7d2a0442 100644
--- a/perf/cairo-analyse-trace.c
+++ b/perf/cairo-analyse-trace.c
@@ -427,7 +427,6 @@ cairo_perf_fini (cairo_perf_t *perf)
cairo_boilerplate_free_targets (perf->targets);
cairo_boilerplate_fini ();
- free (perf->times);
cairo_debug_reset_static_data ();
#if HAVE_FCFINI
FcFini ();
@@ -585,7 +584,6 @@ main (int argc,
trace_dir = getenv ("CAIRO_TRACE_DIR");
perf.targets = cairo_boilerplate_get_targets (&perf.num_targets, NULL);
- perf.times = xmalloc (perf.iterations * sizeof (cairo_perf_ticks_t));
/* do we have a list of filenames? */
perf.exact_names = have_trace_filenames (&perf);