summaryrefslogtreecommitdiff
path: root/perf/cairo-perf-diff-files.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2007-04-19 13:52:03 -0700
committerCarl Worth <cworth@cworth.org>2007-04-25 11:27:33 -0700
commit90d532e08f25644c4e621b0b7e592f4531a39d88 (patch)
tree82c598536f1b202598a9727b51a781aca926defa /perf/cairo-perf-diff-files.c
parentc6c17633e40f549ede5761095a0652c08adeee08 (diff)
downloadcairo-90d532e08f25644c4e621b0b7e592f4531a39d88.tar.gz
Replace old and new reports with reports array
Another baby step toward allowing comparison of more than two reports.
Diffstat (limited to 'perf/cairo-perf-diff-files.c')
-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 4dadcf590..42c2ea11f 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;
}