benchmark animation performance of Opacity widget (#54903)

This commit is contained in:
Jim Graham
2020-04-17 18:34:10 -07:00
committed by GitHub
parent a0379f45d6
commit 77ea2da746
8 changed files with 277 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
// Copyright 2014 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.
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(createFadingChildAnimationPerfTest());
}

View File

@@ -189,6 +189,14 @@ TaskFunction createColorFilterAndFadePerfTest() {
).run;
}
TaskFunction createFadingChildAnimationPerfTest() {
return PerfTest(
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
'test_driver/fading_child_animation_perf.dart',
'fading_child_animation_perf',
).run;
}
/// Measure application startup performance.
class StartupTest {
const StartupTest(this.testDirectory, { this.reportMetrics = true });

View File

@@ -201,6 +201,12 @@ tasks:
stage: devicelab
required_agent_capabilities: ["mac/android"]
fading_child_animation_perf__timeline_summary:
description: >
Measures the runtime performance of opacity filter with fade on Android.
stage: devicelab
required_agent_capabilities: ["mac/android"]
flavors_test:
description: >
Checks that flavored builds work on Android.