From 9f3127060027a24995c3c361cbda964d2c59d039 Mon Sep 17 00:00:00 2001 From: Ninette Adhikari Date: Mon, 27 Jan 2025 14:20:08 +0100 Subject: scripts/buildperf: Add chart tabs for commit count/time We triggered a test of an older revision to narrow down when performance changed. The issue is that git's timestamps are granular to 1s. We'll usually merge a set of commits at the same time so they will all have the same timestamp for a block of them. This means that even if we use the commit date, all the points can't be distinguished on the graph. The author date doesn't work either as the commits are not merged in author date order. To solve this this patch adds the commit_count chart as a separate tab next to the start_time chart (From OE-Core rev: b263edd33f6c895238d81ef148c0445fcd0aa268) Signed-off-by: Richard Purdie --- scripts/lib/build_perf/html/report.html | 71 +++++++++++++++++++++++++++++++-- 1 file changed, 67 insertions(+), 4 deletions(-) (limited to 'scripts/lib/build_perf/html/report.html') diff --git a/scripts/lib/build_perf/html/report.html b/scripts/lib/build_perf/html/report.html index 537ed3ee52..28cd80e738 100644 --- a/scripts/lib/build_perf/html/report.html +++ b/scripts/lib/build_perf/html/report.html @@ -9,7 +9,8 @@ {% for test in test_data %} {% if test.status == 'SUCCESS' %} {% for measurement in test.measurements %} - {% set chart_elem_id = test.name + '_' + measurement.name + '_chart' %} + {% set chart_elem_start_time_id = test.name + '_' + measurement.name + '_chart_start_time' %} + {% set chart_elem_commit_count_id = test.name + '_' + measurement.name + '_chart_commit_count' %} {% include 'measurement_chart.html' %} {% endfor %} {% endif %} @@ -116,6 +117,22 @@ a { a:hover { color: #8080ff; } +button { + background-color: #F3F4F6; + border: none; + outline: none; + cursor: pointer; + padding: 10px 12px; + transition: 0.3s; + border-radius: 8px; + color: #3A4353; +} +button:hover { + background-color: #d6d9e0; +} +.tab button.active { + background-color: #d6d9e0; +} @media (prefers-color-scheme: dark) { :root { --text: #e9e8fa; @@ -126,6 +143,16 @@ a:hover { --trborder: #212936; --chartborder: #b1b0bf; } + button { + background-color: #28303E; + color: #fff; + } + button:hover { + background-color: #545a69; + } + .tab button.active { + background-color: #545a69; + } } @@ -233,7 +260,18 @@ a:hover { {# Linechart #} -
+ +
+
+
+
+ +
{# Measurement statistics #} @@ -340,6 +378,31 @@ a:hover {
{{ test.message }}
{% endif %} {% endfor %} - - + + + + + -- cgit v1.2.3-54-g00ecf