[LNT] r327113 - When comparing to a different machine, plot both graphs.

Martin Liska via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 9 03:04:04 PST 2018


Author: marxin
Date: Fri Mar  9 03:04:04 2018
New Revision: 327113

URL: http://llvm.org/viewvc/llvm-project?rev=327113&view=rev
Log:
When comparing to a different machine, plot both graphs.

Differential Revision: https://reviews.llvm.org/D44008

Modified:
    lnt/trunk/lnt/server/ui/templates/reporting/runs.html

Modified: lnt/trunk/lnt/server/ui/templates/reporting/runs.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/reporting/runs.html?rev=327113&r1=327112&r2=327113&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/reporting/runs.html (original)
+++ lnt/trunk/lnt/server/ui/templates/reporting/runs.html Fri Mar  9 03:04:04 2018
@@ -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 %}




More information about the llvm-commits mailing list