diff --git a/dev/devicelab/bin/tasks/home_scroll_perf__timeline_summary.dart b/dev/devicelab/bin/tasks/home_scroll_perf__timeline_summary.dart new file mode 100644 index 0000000000..7c998846b8 --- /dev/null +++ b/dev/devicelab/bin/tasks/home_scroll_perf__timeline_summary.dart @@ -0,0 +1,14 @@ +// Copyright 2016 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; + +import 'package:flutter_devicelab/tasks/perf_tests.dart'; +import 'package:flutter_devicelab/framework/adb.dart'; +import 'package:flutter_devicelab/framework/framework.dart'; + +Future main() async { + deviceOperatingSystem = DeviceOperatingSystem.android; + await task(createHomeScrollPerfTest()); +} diff --git a/dev/devicelab/lib/tasks/perf_tests.dart b/dev/devicelab/lib/tasks/perf_tests.dart index ffce8bb343..2132132fb5 100644 --- a/dev/devicelab/lib/tasks/perf_tests.dart +++ b/dev/devicelab/lib/tasks/perf_tests.dart @@ -30,6 +30,14 @@ TaskFunction createTilesScrollPerfTest() { ).run; } +TaskFunction createHomeScrollPerfTest() { + return PerfTest( + '${flutterDirectory.path}/examples/flutter_gallery', + 'test_driver/scroll_perf.dart', + 'home_scroll_perf', + ).run; +} + TaskFunction createCullOpacityPerfTest() { return PerfTest( '${flutterDirectory.path}/dev/benchmarks/macrobenchmarks', diff --git a/dev/devicelab/manifest.yaml b/dev/devicelab/manifest.yaml index 2b56186707..861d0637a9 100644 --- a/dev/devicelab/manifest.yaml +++ b/dev/devicelab/manifest.yaml @@ -112,6 +112,14 @@ tasks: stage: devicelab required_agent_capabilities: ["mac/android"] + home_scroll_perf__timeline_summary: + description: > + Measures the runtime performance of scrolling the material page in the + flutter_gallery app on Android. + stage: devicelab + required_agent_capabilities: ["mac/android"] + flaky: true + cull_opacity_perf__timeline_summary: description: > Measures the runtime performance of culling opacity widgets on Android.