diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-05-30 16:50:17 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-06-02 15:13:46 +0100 |
commit | 55f4e0e4e8c7df59bfc9e6ffea8daa065276e42f (patch) | |
tree | 1c0b6d35a05d787b2cf1ca4d16bac4f607a169cb /perf/cairo-perf-compare-backends.c | |
parent | b7c03d4e400245fc2b2d748fe808a9724e61f22f (diff) | |
download | cairo-55f4e0e4e8c7df59bfc9e6ffea8daa065276e42f.tar.gz |
[perf] Change seperators from '-' to '.'
This allows the perf tests to use '-' in the name which is easier to read
and differentiates with using '_' to separate source and operators.
Diffstat (limited to 'perf/cairo-perf-compare-backends.c')
-rw-r--r-- | perf/cairo-perf-compare-backends.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/perf/cairo-perf-compare-backends.c b/perf/cairo-perf-compare-backends.c index e6ab37ff3..3f280ce9f 100644 --- a/perf/cairo-perf-compare-backends.c +++ b/perf/cairo-perf-compare-backends.c @@ -225,18 +225,20 @@ cairo_perf_reports_compare (cairo_perf_report_t *reports, test_report_cmp_name (tests[i], min_test) == 0) { test_time = tests[i]->stats.min_ticks; - if (options->use_ms) - test_time /= tests[i]->stats.ticks_per_ms; - if (diff->num_tests == 0) { - diff->min = test_time; - diff->max = test_time; - } else { - if (test_time < diff->min) + if (test_time > 0) { + if (options->use_ms) + test_time /= tests[i]->stats.ticks_per_ms; + if (diff->num_tests == 0) { diff->min = test_time; - if (test_time > diff->max) diff->max = test_time; + } else { + if (test_time < diff->min) + diff->min = test_time; + if (test_time > diff->max) + diff->max = test_time; + } + diff->tests[diff->num_tests++] = tests[i]; } - diff->tests[diff->num_tests++] = tests[i]; tests[i]++; } } @@ -366,7 +368,7 @@ main (int argc, const char *argv[]) if (args.num_filenames < 1) usage (argv[0]); - reports = xmalloc (args.num_filenames * sizeof (cairo_perf_report_t)); + reports = xcalloc (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], |