diff options
-rw-r--r-- | bench/bench_graph_svg.py | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/bench/bench_graph_svg.py b/bench/bench_graph_svg.py index 50cba55265..e7ed7fe12b 100644 --- a/bench/bench_graph_svg.py +++ b/bench/bench_graph_svg.py @@ -556,7 +556,17 @@ def output_xhtml(lines, oldest_revision, newest_revision, ignored_revision_data_ } //]]></script>""" + all_settings = {} + variant_settings = set() + for label in lines.keys(): + for key, value in label.settings.items(): + if key not in all_settings: + all_settings[key] = value + elif all_settings[key] != value: + variant_settings.add(key) + print '<table border="0" width="%s">' % requested_width + #output column headers print """ <tr valign="top"><td width="50%"> <table border="0" width="100%"> @@ -566,9 +576,15 @@ def output_xhtml(lines, oldest_revision, newest_revision, ignored_revision_data_ <td width="1">Bench Type</td> <td width="1">Bitmap Config</td> <td width="1">Timer Type (Cpu/Gpu/wall)</td> -<td width="1"><!--buttons--></td> -</tr><tr valign="top" align="center"> """ + + for k in variant_settings: + print '<td width="1">%s</td>' % qe(k) + + print '<td width="1"><!--buttons--></td></tr>' + + #output column contents + print '<tr valign="top" align="center">' print '<td width="1">' create_select(lambda l: l.bench, lines, 'benchSelect') print '</td><td width="1">' @@ -576,17 +592,9 @@ def output_xhtml(lines, oldest_revision, newest_revision, ignored_revision_data_ print '</td><td width="1">' create_select(lambda l: l.time_type, lines) - all_settings = {} - variant_settings = set() - for label in lines.keys(): - for key, value in label.settings.items(): - if key not in all_settings: - all_settings[key] = value - elif all_settings[key] != value: - variant_settings.add(key) - for k in variant_settings: - create_select(lambda l: l.settings.get(k, "<missing>"), lines) + print '</td><td width="1">' + create_select(lambda l: l.settings.get(k, " "), lines) print '</td><td width="1"><button type="button"', print 'onclick=%s' % qa("mark('url(#circleMark)'); return false;"), |