summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--perf/cairo-perf-diff-files.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/perf/cairo-perf-diff-files.c b/perf/cairo-perf-diff-files.c
index 4dadcf59..42c2ea11 100644
--- a/perf/cairo-perf-diff-files.c
+++ b/perf/cairo-perf-diff-files.c
@@ -689,17 +689,20 @@ main (int argc, const char *argv[])
1, /* use UTF-8? */
1, /* display change bars? */
};
- cairo_perf_report_t old, new;
+ cairo_perf_report_t *reports;
+ int i;
parse_args (argc, argv, &args);
if (args.num_filenames != 2)
usage (argv[0]);
- cairo_perf_report_load (&old, args.filenames[0]);
- cairo_perf_report_load (&new, args.filenames[1]);
+ reports = xmalloc (args.num_filenames * sizeof (cairo_perf_report_t));
+
+ for (i = 0; i < args.num_filenames; i++ )
+ cairo_perf_report_load (&reports[i], args.filenames[i]);
- cairo_perf_report_diff (&old, &new, &args);
+ cairo_perf_report_diff (&reports[0], &reports[1], &args);
return 0;
}