diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/build_perf/html/report.html | 7 | ||||
-rwxr-xr-x | scripts/oe-build-perf-report | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/scripts/lib/build_perf/html/report.html b/scripts/lib/build_perf/html/report.html index 291ad9d721..d1ba6f2578 100644 --- a/scripts/lib/build_perf/html/report.html +++ b/scripts/lib/build_perf/html/report.html | |||
@@ -136,10 +136,13 @@ h3 { | |||
136 | {% else %} | 136 | {% else %} |
137 | {% set result_style = "color: orange" %} | 137 | {% set result_style = "color: orange" %} |
138 | {%endif %} | 138 | {%endif %} |
139 | {% if measurement.reldiff|abs > 2 %} | ||
140 | {% set result_style = result_style + "; font-weight: bold" %} | ||
141 | {% endif %} | ||
139 | <td>{{ measurement.description }}</td> | 142 | <td>{{ measurement.description }}</td> |
140 | <td style="font-weight: bold">{{ measurement.value.mean }}</td> | 143 | <td style="font-weight: bold">{{ measurement.value.mean }}</td> |
141 | <td style="{{ result_style }}">{{ measurement.absdiff_str }}</td> | 144 | <td style="{{ result_style }}">{{ measurement.absdiff_str }}</td> |
142 | <td style="{{ result_style }}">{{ measurement.reldiff }}</td> | 145 | <td style="{{ result_style }}">{{ measurement.reldiff_str }}</td> |
143 | </tr> | 146 | </tr> |
144 | {% endfor %} | 147 | {% endfor %} |
145 | {% else %} | 148 | {% else %} |
@@ -167,7 +170,7 @@ h3 { | |||
167 | {% else %} | 170 | {% else %} |
168 | <span style="color: orange"> | 171 | <span style="color: orange"> |
169 | {% endif %} | 172 | {% endif %} |
170 | {{ measurement.absdiff_str }} ({{measurement.reldiff}}) | 173 | {{ measurement.absdiff_str }} ({{measurement.reldiff_str}}) |
171 | </span></span> | 174 | </span></span> |
172 | </div> | 175 | </div> |
173 | {# Table for trendchart and the statistics #} | 176 | {# Table for trendchart and the statistics #} |
diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report index dc999c45c1..0bd05f44ef 100755 --- a/scripts/oe-build-perf-report +++ b/scripts/oe-build-perf-report | |||
@@ -416,9 +416,11 @@ def print_html_report(data, id_comp, buildstats): | |||
416 | samples[-1]['commit_num'] = commit_num | 416 | samples[-1]['commit_num'] = commit_num |
417 | 417 | ||
418 | absdiff = samples[-1]['val_cls'](samples[-1]['mean'] - samples[id_comp]['mean']) | 418 | absdiff = samples[-1]['val_cls'](samples[-1]['mean'] - samples[id_comp]['mean']) |
419 | reldiff = absdiff * 100 / samples[id_comp]['mean'] | ||
419 | new_meas['absdiff'] = absdiff | 420 | new_meas['absdiff'] = absdiff |
420 | new_meas['absdiff_str'] = str(absdiff) if absdiff < 0 else '+' + str(absdiff) | 421 | new_meas['absdiff_str'] = str(absdiff) if absdiff < 0 else '+' + str(absdiff) |
421 | new_meas['reldiff'] = "{:+.1f} %".format(absdiff * 100 / samples[id_comp]['mean']) | 422 | new_meas['reldiff'] = reldiff |
423 | new_meas['reldiff_str'] = "{:+.1f} %".format(reldiff) | ||
422 | new_meas['samples'] = samples | 424 | new_meas['samples'] = samples |
423 | new_meas['value'] = samples[-1] | 425 | new_meas['value'] = samples[-1] |
424 | new_meas['value_type'] = samples[-1]['val_cls'] | 426 | new_meas['value_type'] = samples[-1]['val_cls'] |