Add cull opacity perf test to device lab (#25381)

For https://github.com/flutter/flutter/issues/24712

This test verifies that https://github.com/flutter/engine/pull/6923 will speedup the average rasterize time of this test from ~150ms to ~10ms

Please see non-auto-generated files in 37b21d9fb4
This commit is contained in:
liyuqian
2018-12-17 22:01:07 -08:00
committed by GitHub
parent 7ecef3aa27
commit 8ad4cbe06e
58 changed files with 1378 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
// Copyright 2018 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<void> main() async {
deviceOperatingSystem = DeviceOperatingSystem.android;
await task(createCullOpacityPerfTest());
}

View File

@@ -30,6 +30,14 @@ TaskFunction createTilesScrollPerfTest() {
).run;
}
TaskFunction createCullOpacityPerfTest() {
return PerfTest(
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
'test_driver/cull_opacity_perf.dart',
'cull_opacity_perf',
).run;
}
TaskFunction createFlutterGalleryStartupTest() {
return StartupTest(
'${flutterDirectory.path}/examples/flutter_gallery',

View File

@@ -112,6 +112,13 @@ tasks:
stage: devicelab
required_agent_capabilities: ["mac/android"]
cull_opacity_perf__timeline_summary:
description: >
Measures the runtime performance of culling opacity widgets on Android.
stage: devicelab
required_agent_capabilities: ["mac/android"]
flaky: true # mark a new test as flaky
flavors_test:
description: >
Checks that flavored builds work on Android.