mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 06:28:01 +02:00
Replace old and new reports with reports array
Another baby step toward allowing comparison of more than two reports.
This commit is contained in:
parent
c6c17633e4
commit
90d532e08f
1 changed files with 7 additions and 4 deletions
|
|
@ -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));
|
||||
|
||||
cairo_perf_report_diff (&old, &new, &args);
|
||||
for (i = 0; i < args.num_filenames; i++ )
|
||||
cairo_perf_report_load (&reports[i], args.filenames[i]);
|
||||
|
||||
cairo_perf_report_diff (&reports[0], &reports[1], &args);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue