diff --git a/lnt/server/ui/templates/v4_run.html b/lnt/server/ui/templates/v4_run.html index c063f2d..fc1d9d8 100644 --- a/lnt/server/ui/templates/v4_run.html +++ b/lnt/server/ui/templates/v4_run.html @@ -1,431 +1,431 @@ {% import "utils.html" as utils %} {% import "local.html" as local %} {% set hash_field = ts.Sample.get_hash_of_binary_field() %} {% set machine = run.machine %} {% set neighboring_runs = request_info.neighboring_runs %} {% set comparison_neighboring_runs = request_info.comparison_neighboring_runs %} {% extends "layout.html" %} {% set components = [(ts.name, v4_url_for(".v4_recent_activity")), ('%s:%s' % (machine.name, machine.id), v4_url_for(".v4_machine", id=machine.id))] %} {% block head %} {% endblock %} {% block onload %} $('.profile-but-no-prev').tooltip(); $('.profile-prev-only').tooltip(); {% endblock %} {% block title %}Run Results{% endblock %} {% macro get_cell_value(cr, field) %} {% set test_status = cr.get_test_status() %} {% set value_status = cr.get_value_status(ignore_small=not options.show_small_diff) %} {% set run_cell_value = cr.current|print_value(field.unit, field.unit_abbrev) %} {% set run_cell_value = "-" if test_status in [analysis.REGRESSED, analysis.UNCHANGED_FAIL] else run_cell_value %} {% if options.show_previous %} {% set prev_cell_value = "-" if cr.previous is none else "%.4f" % cr.previous %} {% set prev_cell_value = "-" if test_status in [analysis.IMPROVED, analysis.UNCHANGED_FAIL] else prev_cell_value %} {{prev_cell_value}} {% endif %} {% set cell_color = none %} {% if test_status == analysis.REGRESSED %} {% set cell_color = (233,128,128) %} {% elif test_status == analysis.IMPROVED %} {% set cell_color = (143,223,95) %} {% elif test_status == analysis.UNCHANGED_FAIL %} {% set cell_color = (255,195,67) %} {% endif %} {% if cell_color %} {{ run_cell_value }} {% else %} {{run_cell_value}} {% endif %} {% if test_status == analysis.UNCHANGED_PASS and (options.show_all or value_status == analysis.REGRESSED or value_status == analysis.IMPROVED) %} {{ cr.pct_delta|aspctcell(reverse=cr.bigger_is_better)|safe }} {% else %} - {% endif %} {% if options.show_delta %} {{ "-" if cr.delta is none or test_status != analysis.UNCHANGED_PASS else "%.4f" % cr.delta }} {% endif %} {% if options.show_stddev %} {{ "-" if cr.stddev is none or test_status != analysis.UNCHANGED_PASS else "%.4f" % cr.stddev }} {% endif %} {% if options.show_mad %} {{ "-" if cr.MAD is none or test_status != analysis.UNCHANGED_PASS else "%.4f" % cr.MAD }} {% endif %} {% if options.show_all_samples %} [ {%- for v in cr.samples -%} {{ ", " if not loop.first else "" }} {{ "%.4f" % v }} {%- endfor -%} ] {% endif %} {% if options.show_sample_counts %} {{cr.samples|length}} {% endif %} {% endmacro %} {% block sidebar %}

Runs:

{# Show a small number of runs in the neighborhood of the comparison run. #} {% if comparison_neighboring_runs %}

Compare To:

{% endif %} {% endblock %} {% block body %}
{{ utils.render_popup_begin('machine_info', 'Machine Info', true) }}

Fields

{% for item in machine.fields %} {% endfor %}
{{item.name}} {{ utils.newline_to_br(machine.get_field(item)) }}

Parameters

{% for key,value in machine.parameters|dictsort %} {% endfor %}
{{key}} {{ utils.newline_to_br(value) }}
{{ utils.render_popup_end() }}
{{ utils.render_popup_begin('run_info', 'Run Info', true) }}

Fields

{% for item in run.fields %} {% endfor %}
NameValue
{{item.name}} {{ utils.newline_to_br(run.get_field(item)) }}

Parameters

{% for key, value in run.parameters|dictsort(case_sensitive=True) %} {% endfor %}
NameValue
{{key}} {{ utils.newline_to_br(value) }}
{{ utils.render_popup_end() }}
{{ utils.render_popup_begin('view_options', 'View Options', true) }}
{% if compare_to %} {% endif %} {% if baseline %} {% endif %}
{{ utils.render_popup_end() }}
{{ utils.render_popup_begin('html_report', 'Report', options.hide_report_by_default) }} {{ utils.regex_filter_box(input_id='filter', selector='.searchable tr', placeholder="Benchmark name regex...", selector_part_to_search=".benchmark-name") }} {% include "reporting/runs.html" %} {{ utils.render_popup_end() }} {% set graph_base=v4_url_for('.v4_graph', highlight_run=run.id) %}
{# Report one table for each primary field. #} {% for field in metric_fields %} {% set field_index = ts.get_field_index(field) %}
{% set tests = [] %} {% set (runs, compare_runs) = request_info.sri.get_sliding_runs(request_info.session, run, compare_to, request_info.num_comparison_runs) %} {% for test_name,test_id in test_info %} {% set cr = request_info.sri.get_comparison_result( runs, compare_runs, test_id, field, hash_field) %} {% if cr.previous is not none or cr.current is not none %} {% if cr.current is none or cr.current >= test_min_value_filter %} {% if tests.append((test_name, test_id, cr)) %}{% endif %} {% endif %} {% endif %} {% endfor %} {% if tests %} {% set unit_suffix = ' (%s)' % field.unit if field.unit else '' %} {% set title = field.display_name + unit_suffix %} {{ utils.render_popup_begin('test_data-' + field.name, title, false) }} {% if options.show_previous %}{% endif %} {% if options.show_delta %}{% endif %} {% if options.show_stddev %}{% endif %} {% if options.show_mad %}{% endif %} {% if options.show_all_samples %}{% endif %} {% if options.show_sample_counts %}{% endif %} {% for test_name,test_id,cr in tests %} - + {{ get_cell_value(cr, field) }} {% endfor %} {% set cr = request_info.sri.get_geomean_comparison_result( run, compare_to, field, tests) %} {{ get_cell_value(cr, field) }}
NamePrevCurrent %ΔσMADSamplesN
{{ test_name }} {{ utils.render_profile_link(cr.cur_profile, cr.prev_profile, run.id, compare_to.id, test_id) }}
Geometric Mean
{{ utils.render_popup_end() }} {% else %} {% endif %}
{% endfor %}

{% if options.show_data_table %}

Test Data

{% for field in metric_fields %} {% endfor %} {% for field in metric_fields %} {% endfor %} {% for test_name,test_id in test_info %} {% for field in metric_fields %} {% set cr = request_info.sri.get_run_comparison_result( run, compare_to, test_id, field, hash_field) %} {% endfor %} {% endfor %}
Name{{field.name}}
-Prev Value %
{{ test_name }}{{cr.previous}} {{cr.current}} {{cr.pct_delta}}
{% endif %} {% endblock %}