aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/check_bench_regressions.py
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-13 17:38:17 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-13 17:38:17 +0000
commit9d439a707e501ee87d1aa90206d0daac8dad4411 (patch)
treea3d705957456d1161ae0e9897dfc629956cfeef6 /bench/check_bench_regressions.py
parent30aa341eb10e98d9d05ad2090caeac4346cb30e7 (diff)
Adds dashboard link for one-line plot on each alert item.
BUG=skia:2523 NOTRY=true R=kelvinly@google.com TBR=rmistry@google.com Author: bensong@google.com Review URL: https://codereview.chromium.org/280663002 git-svn-id: http://skia.googlecode.com/svn/trunk@14713 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/check_bench_regressions.py')
-rw-r--r--bench/check_bench_regressions.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/bench/check_bench_regressions.py b/bench/check_bench_regressions.py
index 86ead54957..ea9146421a 100644
--- a/bench/check_bench_regressions.py
+++ b/bench/check_bench_regressions.py
@@ -28,6 +28,9 @@ UB_IDX = -1
SLOWER = 0
FASTER = 1
+# URL prefix for the bench dashboard page. Showing recent 15 days of data.
+DASHBOARD_URL_PREFIX = 'http://go/skpdash/#15'
+
def usage():
"""Prints simple usage information."""
@@ -147,6 +150,9 @@ def check_expectations(lines, expectations, key_suffix):
for line in lines:
line_str = str(line)
line_str = line_str[ : line_str.find('_{')]
+ # Extracts bench and config from line_str, which is in the format
+ # <bench-picture-name>.skp_<config>_
+ bench, config = line_str.strip('_').split('.skp_')
bench_platform_key = line_str + ',' + key_suffix
if bench_platform_key not in expectations:
continue
@@ -157,6 +163,8 @@ def check_expectations(lines, expectations, key_suffix):
exception = 'Bench %s out of range [%s, %s] (%s vs %s, %s%%).' % (
bench_platform_key, this_min, this_max, this_bench_value,
this_expected, (off_ratio - 1) * 100)
+ exception += '\n' + '~'.join([
+ DASHBOARD_URL_PREFIX, bench, platform, config])
if off_ratio > 1: # Bench is slower.
exceptions[SLOWER].setdefault(off_ratio, []).append(exception)
else: