[llvm-commits] [zorg] r131776 - in /zorg/trunk/lnt/lnt/server/ui: templates/simple_run.html views.py
Daniel Dunbar
daniel at zuster.org
Fri May 20 17:49:55 PDT 2011
Author: ddunbar
Date: Fri May 20 19:49:55 2011
New Revision: 131776
URL: http://llvm.org/viewvc/llvm-project?rev=131776&view=rev
Log:
LNT/simple: Add view option for showing previous value.
Modified:
zorg/trunk/lnt/lnt/server/ui/templates/simple_run.html
zorg/trunk/lnt/lnt/server/ui/views.py
Modified: zorg/trunk/lnt/lnt/server/ui/templates/simple_run.html
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/server/ui/templates/simple_run.html?rev=131776&r1=131775&r2=131776&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/server/ui/templates/simple_run.html (original)
+++ zorg/trunk/lnt/lnt/server/ui/templates/simple_run.html Fri May 20 19:49:55 2011
@@ -34,6 +34,11 @@
{% set value_status = cr.get_value_status() %}
{% set run_cell_value = "-" if cr.current is none else "%.4f" % cr.current %}
+{% if options.show_previous %}
+{% set prev_cell_value = "-" if cr.previous is none else "%.4f" % cr.previous %}
+ <td>{{prev_cell_value}}</td>
+{% endif %}
+
{% set cell_color = none %}
{% if test_status == runinfo.REGRESSED %}
{% set cell_color = (233,128,128) %}
@@ -90,6 +95,10 @@
<input type="checkbox" name="show_delta" value="yes" {{
"checked" if options.show_delta }}><br>
+<b>Show Previous Value:</b>
+<input type="checkbox" name="show_previous" value="yes" {{
+ "checked" if options.show_previous }}><br>
+
<b>Show Standard Deviation:</b>
<input type="checkbox" name="show_stddev" value="yes" {{
"checked" if options.show_stddev }}><br>
@@ -165,8 +174,8 @@
<h3>Tests</h3>
{% set pset_cols = (
- 2 + options.show_delta + options.show_stddev + options.show_mad +
- options.show_all_samples + options.show_sample_counts) %}
+ 2 + options.show_previous + options.show_delta + options.show_stddev +
+ options.show_mad + options.show_all_samples + options.show_sample_counts) %}
<form method="GET" action="{{ db_url_for('simple_graph',
tag=tag, id=id) }}">
@@ -183,6 +192,9 @@
<th></th>
<th></th>
{% for key in ts_summary.parameter_sets %}
+ {% if options.show_previous %}
+ <th>Prev</th>
+ {% endif %}
<th><input type="checkbox" name="pset.{{loop.index0}}"
value="on" checked></th>
<th>%</th>
Modified: zorg/trunk/lnt/lnt/server/ui/views.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/server/ui/views.py?rev=131776&r1=131775&r2=131776&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/server/ui/views.py (original)
+++ zorg/trunk/lnt/lnt/server/ui/views.py Fri May 20 19:49:55 2011
@@ -275,6 +275,7 @@
# Parse the view options.
options = {}
options['show_delta'] = bool(request.args.get('show_delta'))
+ options['show_previous'] = bool(request.args.get('show_previous'))
options['show_stddev'] = bool(request.args.get('show_stddev'))
options['show_mad'] = bool(request.args.get('show_mad'))
options['show_all'] = bool(request.args.get('show_all'))
More information about the llvm-commits
mailing list