aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-03-09 11:04:04 +0000
committerMartin Liska <mliska@suse.cz>2018-03-09 11:04:04 +0000
commit960affaadfabe99a559e5404842237cda13efc60 (patch)
tree07fd7394505ee324399e754c3ba544f38aeae64a
parentdb1b9741dc0cc236a41c1dcd564b1876c7dbaa6b (diff)
When comparing to a different machine, plot both graphs.
Differential Revision: https://reviews.llvm.org/D44008 git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@327113 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lnt/server/ui/templates/reporting/runs.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/lnt/server/ui/templates/reporting/runs.html b/lnt/server/ui/templates/reporting/runs.html
index 930b65d..472ab70 100644
--- a/lnt/server/ui/templates/reporting/runs.html
+++ b/lnt/server/ui/templates/reporting/runs.html
@@ -41,7 +41,11 @@
{% for name, cr, test_id in bucket %}
<tr>
<td class="benchmark-name" style="{{ styles['td'] }}">
- <a href="{{ run_url }}/graph?{{ [('test.%d' % test_id, field_index)] | urlencode }}">{{ name }}</a>
+ {% if run.machine != compare_to.machine %}
+ <a href="{{ run_url }}/graph?plot.0={{run.machine_id}}.{{test_id}}.{{field_index}}&plot.1={{compare_to.machine_id}}.{{test_id}}.{{field_index}}">{{ name }}</a>
+ {% else %}
+ <a href="{{ run_url }}/graph?{{ [('test.%d' % test_id, field_index)] | urlencode }}">{{ name }}</a>
+ {% endif %}
{% if compare_to %}
{% set compare_to_id = compare_to.id %}
{% else %}