migrate cubic_bezier_perf to e2e (#64487)

This commit is contained in:
Ming Lyu (CareF) 2020-09-11 23:02:03 -04:00 committed by GitHub
parent 33f799508c
commit 51f1c98490
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 71 additions and 0 deletions

View file

@ -1,2 +1,4 @@
lib/generated_plugin_registrant.dart
devtools_memory.json
*.sksl.json
vmservice.out

View file

@ -0,0 +1,11 @@
// 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 'package:macrobenchmarks/common.dart';
import 'util.dart';
void main() {
macroPerfTestE2E('cubic_bezier_perf', kCubicBezierRouteName);
}

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(createCubicBezierPerfE2ETest());
}

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(createCubicBezierPerfSkSlWarmupE2ETest());
}

View file

@ -92,6 +92,20 @@ TaskFunction createCubicBezierPerfTest() {
).run;
}
TaskFunction createCubicBezierPerfE2ETest() {
return PerfTest.e2e(
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
'test/cubic_bezier_perf_e2e.dart',
).run;
}
TaskFunction createCubicBezierPerfSkSlWarmupE2ETest() {
return PerfTestWithSkSL.e2e(
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
'test/cubic_bezier_perf_e2e.dart',
).run;
}
TaskFunction createCubicBezierPerfSkSLWarmupTest() {
return PerfTestWithSkSL(
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',

View file

@ -209,6 +209,14 @@ tasks:
stage: devicelab
required_agent_capabilities: ["mac/android"]
cubic_bezier_perf__e2e_summary:
description: >
Measures the runtime performance of cubic bezier animations on Android
using e2e.
stage: devicelab
required_agent_capabilities: ["linux/android"]
flaky: true
cubic_bezier_perf_sksl_warmup__timeline_summary:
description: >
Measures the runtime performance of cubic bezier animations on Android
@ -216,6 +224,14 @@ tasks:
stage: devicelab
required_agent_capabilities: ["mac/android"]
cubic_bezier_perf_sksl_warmup__e2e_summary:
description: >
Measures the runtime performance of cubic bezier animations on Android
with SkSL shader warm-up using e2e.
stage: devicelab
required_agent_capabilities: ["linux/android"]
flaky: true
flutter_gallery_sksl_warmup_ios32__transition_perf:
description: >
Measures the runtime performance of Flutter gallery transitions on iPhone4s