From 58515d6a7f84d75130d0e2f14c37cd4fc3c64dcc Mon Sep 17 00:00:00 2001 From: godofredoc <54371434+godofredoc@users.noreply.github.com> Date: Mon, 26 Oct 2020 12:49:23 -0700 Subject: [PATCH] Add metrics scripts in preparation to move the builder to LUCI. (flutter/engine#22086) * Add metrics scripts in preparation to move the builder to LUCI. Bug: https://github.com/flutter/flutter/issues/67579 * set -ex to fail scripts inmediately. --- .../testing/benchmark/generate_metrics.sh | 16 ++++++++++++++++ .../flutter/testing/benchmark/upload_metrics.sh | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 engine/src/flutter/testing/benchmark/generate_metrics.sh create mode 100644 engine/src/flutter/testing/benchmark/upload_metrics.sh diff --git a/engine/src/flutter/testing/benchmark/generate_metrics.sh b/engine/src/flutter/testing/benchmark/generate_metrics.sh new file mode 100644 index 0000000000..cef9672b22 --- /dev/null +++ b/engine/src/flutter/testing/benchmark/generate_metrics.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# +# Copyright 2013 The Flutter Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. +# +# This script is expected to run from $ENGINE_PATH/src/out/host_release/ +# it is currently used only by automation to collect and upload metrics. + +set -ex + +./txt_benchmarks --benchmark_format=json > txt_benchmarks.json +./fml_benchmarks --benchmark_format=json > fml_benchmarks.json +./shell_benchmarks --benchmark_format=json > shell_benchmarks.json +./ui_benchmarks --benchmark_format=json > ui_benchmarks.json + diff --git a/engine/src/flutter/testing/benchmark/upload_metrics.sh b/engine/src/flutter/testing/benchmark/upload_metrics.sh new file mode 100644 index 0000000000..010811e3df --- /dev/null +++ b/engine/src/flutter/testing/benchmark/upload_metrics.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# +# Copyright 2013 The Flutter Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. +# +# This script is expected to run from $ENGINE_PATH/src/flutter/testing/benchmark +# it is currently used only by automation to collect and upload metrics. + +set -ex + +pub get +dart bin/parse_and_send.dart ../../../out/host_release/txt_benchmarks.json +dart bin/parse_and_send.dart ../../../out/host_release/fml_benchmarks.json +dart bin/parse_and_send.dart ../../../out/host_release/shell_benchmarks.json +dart bin/parse_and_send.dart ../../../out/host_release/ui_benchmarks.json