From patchwork Thu Apr 26 11:51:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 134510 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2180713lji; Thu, 26 Apr 2018 04:51:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx48jENTxlPl9O6Hr7hGmDIIrtIPuJ0C3fUAD1XeRiqLIty9xTebsFtVjbpCNmXbbCCUp9Uko X-Received: by 10.98.86.204 with SMTP id h73mr31006588pfj.47.1524743478405; Thu, 26 Apr 2018 04:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524743478; cv=none; d=google.com; s=arc-20160816; b=V8yADFQEdebZcJbDhB/Y8rcI6smcFi6sA6bNzbIRb9jqC7sgiEXo+huqBtMIgfU+is DRUF1BPxjffMXYuVSFTmmypApXhSxmhEjGZdmGCHw3Bp8CHXlJMpsAhkYrxIGZfS/9/B huVVfPzDO2Ts6NtpO+/PjS9lLYLZtLw8IWuWGzIAHVCao/qURUIaDlf3Zzy1YecSP4ei C7YNCpqQ4QslqrCBykOrWeaf2G0NECDzdynAcH35ZtNgo5w3jqg2tPyvJnN241/tlDXk 4DmwZPmvpc48Gd/egRpjpU/0dy1nKLKD/reUxbyJ4SFMkBL7ItpRIHQEXj4GOdGcAxHG eUVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=8lXfGoOJysZi5OlX9oNXI+8kXEx9CPxJjXNwyFSSLiY=; b=w48SGCGBVf9uzja4E9poekJ7rUVkHWacZWcaayua2LbhzcbG61yTy30ZDq2Luuy42M WWwxrHXvKmT3ydkL4T8dSIZMV3C6srXMySYKe3q1FZfqgQ4LrRNZ5Rn4NzhAXJ+Ydwwo Fe4UPQ6OfwhJPEB0Cl4FnL1aE5rx/kr5f2MBWGMxbOOteKTkU/yfqxjFaWl4PQ/JAVDq KWmvG6Bu1ooeNgwN2Yf0z4BJNpTC385s0BKTyz24TnNPeBXOPcowRwwle2dND7ZKC03i 4ZX35XGyFas+yBpOPkKLQB5HIXpJsW8I2yHKS1L+iwjiNAHymlE1coOBLp3H6r3E405J lFrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=NFKc+5xU; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id s15-v6si18607957plp.243.2018.04.26.04.51.18; Thu, 26 Apr 2018 04:51:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=NFKc+5xU; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 395EC745A3; Thu, 26 Apr 2018 11:51:12 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by mail.openembedded.org (Postfix) with ESMTP id 4F29174557 for ; Thu, 26 Apr 2018 11:51:07 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id j5so12745340wme.5 for ; Thu, 26 Apr 2018 04:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=mabJ1RYQCE2egKnVkZJk9a2rpy117ixKrtPOByZGNIU=; b=NFKc+5xUyv/+e/7g4wwvXM0dDD7cvg/z1PE+fdkvTdqkkag2DWtNGwaLKKSOggvXgj 0is2nRG9vApjncAE83GS1l7udG4xPWk0r4okiSOQScGpVqZ+LEskpt1uuzvTBFzTx29v bmdSkTlEGiPhk2AL8yizQGPCKchzOPisslgpQpwqBK0CvSlX0/KAz8Q2zobuBsTHwRzj 1rIWj13dgJLRSIU2+Qn4b64QP3Q9quPqB0X00RFPz9JCaznbfYtTODIhkYJs2S1BA+/r WDlPQjo2yIig56Tte0CrHxOchNeAI+Qm2rxKpfLuZ81/IGq7okOvdmGjAInvEjtNdHsN s5aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=mabJ1RYQCE2egKnVkZJk9a2rpy117ixKrtPOByZGNIU=; b=jzIv177To+IK2Ny+oPcthn4WQNV4bRdt8i5oxcFCoJDV4saJZFb7INLgYZ7hot6Rv+ cCPN+YXzb1eUcByN9YqSNBnZSSahzRFbTVdBphFEPiRQFcxEEDfGSTniz/d1C/ZQbpNh oIrcS02FSd3wa1Bd44l/Jifbr42jYpuxHMPpSyJ+flmSkktOFdLT0Hlbdy3PTFjnCCbG f5yC1UPCSdthtFHfa9wZH3A2dUTTfIXiGfIpKXR0WlwSIdBQyCJn7VwQcorUVKjyAtEl Z47kkKhZ2/7fPGmhWVDHaawnq8ox3u6yQj9eIM6PvKJ28b8CqJlULpMTxOLj9cSliQyg smVw== X-Gm-Message-State: ALQs6tAl6FUnmKdJB2HDlj67h4jpNGgdOmtvVhQ1N2vnVRGlJGA+183N JTUYGdTfikKuEZzImRIXBkY4iCHY X-Received: by 10.28.40.4 with SMTP id o4mr19026639wmo.44.1524743468120; Thu, 26 Apr 2018 04:51:08 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id o12-v6sm21104882wri.78.2018.04.26.04.51.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Apr 2018 04:51:07 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 26 Apr 2018 12:51:04 +0100 Message-Id: <20180426115104.22748-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH] oe-buildperf-report: highlight large changes in the HTML report X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org If the relative difference is greater than 2%, make the text bold to highlight it. Signed-off-by: Ross Burton --- scripts/lib/build_perf/html/report.html | 7 +++++-- scripts/oe-build-perf-report | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/scripts/lib/build_perf/html/report.html b/scripts/lib/build_perf/html/report.html index 291ad9d7216..d1ba6f25788 100644 --- a/scripts/lib/build_perf/html/report.html +++ b/scripts/lib/build_perf/html/report.html @@ -136,10 +136,13 @@ h3 { {% else %} {% set result_style = "color: orange" %} {%endif %} + {% if measurement.reldiff|abs > 2 %} + {% set result_style = result_style + "; font-weight: bold" %} + {% endif %} {{ measurement.description }} {{ measurement.value.mean }} {{ measurement.absdiff_str }} - {{ measurement.reldiff }} + {{ measurement.reldiff_str }} {% endfor %} {% else %} @@ -167,7 +170,7 @@ h3 { {% else %} {% endif %} - {{ measurement.absdiff_str }} ({{measurement.reldiff}}) + {{ measurement.absdiff_str }} ({{measurement.reldiff_str}}) {# Table for trendchart and the statistics #} diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report index dc999c45c15..0bd05f44ef0 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): samples[-1]['commit_num'] = commit_num absdiff = samples[-1]['val_cls'](samples[-1]['mean'] - samples[id_comp]['mean']) + reldiff = absdiff * 100 / samples[id_comp]['mean'] new_meas['absdiff'] = absdiff new_meas['absdiff_str'] = str(absdiff) if absdiff < 0 else '+' + str(absdiff) - new_meas['reldiff'] = "{:+.1f} %".format(absdiff * 100 / samples[id_comp]['mean']) + new_meas['reldiff'] = reldiff + new_meas['reldiff_str'] = "{:+.1f} %".format(reldiff) new_meas['samples'] = samples new_meas['value'] = samples[-1] new_meas['value_type'] = samples[-1]['val_cls']