migrate backdrop_filter_perf (#64482)
This commit is contained in:
parent
bd90915999
commit
f681fcf32b
@ -0,0 +1,16 @@
|
|||||||
|
// 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(
|
||||||
|
'backdrop_filter_perf',
|
||||||
|
kBackdropFilterRouteName,
|
||||||
|
pageDelay: const Duration(seconds: 1),
|
||||||
|
duration: const Duration(seconds: 10),
|
||||||
|
);
|
||||||
|
}
|
@ -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(createBackdropFilterPerfE2ETest());
|
||||||
|
}
|
@ -142,6 +142,13 @@ TaskFunction createBackdropFilterPerfTest({bool measureCpuGpu = false}) {
|
|||||||
).run;
|
).run;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TaskFunction createBackdropFilterPerfE2ETest() {
|
||||||
|
return PerfTest.e2e(
|
||||||
|
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
|
||||||
|
'test/backdrop_filter_perf_e2e.dart',
|
||||||
|
).run;
|
||||||
|
}
|
||||||
|
|
||||||
TaskFunction createPostBackdropFilterPerfTest({bool measureCpuGpu = false}) {
|
TaskFunction createPostBackdropFilterPerfTest({bool measureCpuGpu = false}) {
|
||||||
return PerfTest(
|
return PerfTest(
|
||||||
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
|
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
|
||||||
|
@ -251,6 +251,13 @@ tasks:
|
|||||||
stage: devicelab
|
stage: devicelab
|
||||||
required_agent_capabilities: ["mac/android"]
|
required_agent_capabilities: ["mac/android"]
|
||||||
|
|
||||||
|
backdrop_filter_perf__e2e_summary:
|
||||||
|
description: >
|
||||||
|
Measures the runtime performance of backdrop filter blurs on Android.
|
||||||
|
stage: devicelab
|
||||||
|
required_agent_capabilities: ["linux/android"]
|
||||||
|
flaky: true
|
||||||
|
|
||||||
textfield_perf__timeline_summary:
|
textfield_perf__timeline_summary:
|
||||||
description: >
|
description: >
|
||||||
Measures the runtime performance of textfield on Android.
|
Measures the runtime performance of textfield on Android.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user