[cairo-commit] perf/cairo-perf-diff-files.c

M. Joonas Pihlaja joonas at kemper.freedesktop.org
Thu Jun 17 04:29:43 PDT 2010


 perf/cairo-perf-diff-files.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 800e977c2ea1e097c4b7332b18a5fc03089603c1
Author: M Joonas Pihlaja <jpihlaja at cc.helsinki.fi>
Date:   Thu Jun 17 14:27:13 2010 +0300

    perf: Allow comparing perf reports with only one difference.
    
    The cairo-perf-diff-files tool would ignore perf reports with
    just one test for no apparent reason.  The traces take so long
    that it's useful to be able to compare runs with just one trace.

diff --git a/perf/cairo-perf-diff-files.c b/perf/cairo-perf-diff-files.c
index a04014c..056d7ec 100644
--- a/perf/cairo-perf-diff-files.c
+++ b/perf/cairo-perf-diff-files.c
@@ -314,7 +314,7 @@ cairo_perf_reports_compare (cairo_perf_report_t		*reports,
 	diff++;
 	num_diffs++;
     }
-    if (num_diffs < 2)
+    if (num_diffs == 0)
 	goto DONE;
 
     if (num_reports == 2)


More information about the cairo-commit mailing list