Move benchmarks no upload to a test. (flutter/engine#42356)
This is moving the execution of the benchmarks script to a test inside the existing host_relese configuration. It keeps the same coverage with and removes one build. Bug: https://github.com/flutter/flutter/issues/127678 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This commit is contained in:
@@ -224,6 +224,19 @@
|
||||
"--engine-capture-core-dump"
|
||||
],
|
||||
"script": "flutter/testing/run_tests.py"
|
||||
},
|
||||
{
|
||||
"language": "bash",
|
||||
"name": "Generate metrics test",
|
||||
"script": "flutter/testing/benchmark/generate_metrics.sh"
|
||||
},
|
||||
{
|
||||
"language": "bash",
|
||||
"name": "Upload metrics dry-run",
|
||||
"parameters": [
|
||||
"--no-upload"
|
||||
],
|
||||
"script": "flutter/testing/benchmark/upload_metrics.sh"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
# 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.
|
||||
# This script expects $ENGINE_PATH to be set. 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
|
||||
./display_list_builder_benchmarks --benchmark_format=json > display_list_builder_benchmarks.json
|
||||
./geometry_benchmarks --benchmark_format=json > geometry_benchmarks.json
|
||||
$ENGINE_PATH/src/out/host_release/txt_benchmarks --benchmark_format=json > $ENGINE_PATH/src/out/host_release/txt_benchmarks.json
|
||||
$ENGINE_PATH/src/out/host_release/fml_benchmarks --benchmark_format=json > $ENGINE_PATH/src/out/host_release/fml_benchmarks.json
|
||||
$ENGINE_PATH/src/out/host_release/shell_benchmarks --benchmark_format=json > $ENGINE_PATH/src/out/host_release/shell_benchmarks.json
|
||||
$ENGINE_PATH/src/out/host_release/ui_benchmarks --benchmark_format=json > $ENGINE_PATH/src/out/host_release/ui_benchmarks.json
|
||||
$ENGINE_PATH/src/out/host_release/display_list_builder_benchmarks --benchmark_format=json > $ENGINE_PATH/src/out/host_release/display_list_builder_benchmarks.json
|
||||
$ENGINE_PATH/src/out/host_release/geometry_benchmarks --benchmark_format=json > $ENGINE_PATH/src/out/host_release/geometry_benchmarks.json
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
# This script is currently used only by automation to collect and upload
|
||||
# metrics.
|
||||
# metrics and expects $ENGINE_PATH to be set.
|
||||
|
||||
set -ex
|
||||
|
||||
@@ -37,14 +37,14 @@ DART="${DART_SDK_DIR}/bin/dart"
|
||||
|
||||
cd "$SCRIPT_DIR"
|
||||
"$DART" --disable-dart-dev bin/parse_and_send.dart \
|
||||
--json ../../../out/host_release/txt_benchmarks.json "$@"
|
||||
--json $ENGINE_PATH/src/out/host_release/txt_benchmarks.json "$@"
|
||||
"$DART" --disable-dart-dev bin/parse_and_send.dart \
|
||||
--json ../../../out/host_release/fml_benchmarks.json "$@"
|
||||
--json $ENGINE_PATH/src/out/host_release/fml_benchmarks.json "$@"
|
||||
"$DART" --disable-dart-dev bin/parse_and_send.dart \
|
||||
--json ../../../out/host_release/shell_benchmarks.json "$@"
|
||||
--json $ENGINE_PATH/src/out/host_release/shell_benchmarks.json "$@"
|
||||
"$DART" --disable-dart-dev bin/parse_and_send.dart \
|
||||
--json ../../../out/host_release/ui_benchmarks.json "$@"
|
||||
--json $ENGINE_PATH/src/out/host_release/ui_benchmarks.json "$@"
|
||||
"$DART" --disable-dart-dev bin/parse_and_send.dart \
|
||||
--json ../../../out/host_release/display_list_builder_benchmarks.json "$@"
|
||||
--json $ENGINE_PATH/src/out/host_release/display_list_builder_benchmarks.json "$@"
|
||||
"$DART" --disable-dart-dev bin/parse_and_send.dart \
|
||||
--json ../../../out/host_release/geometry_benchmarks.json "$@"
|
||||
--json $ENGINE_PATH/src/out/host_release/geometry_benchmarks.json "$@"
|
||||
|
||||
Reference in New Issue
Block a user