[devicelab] Add platform view scroll benchmarks for Impeller on Android (#129455)

For tracking perf improvements with changes like
https://github.com/flutter/engine/pull/43152.
This commit is contained in:
Brandon DeRosier
2023-06-23 18:40:17 -07:00
committed by GitHub
parent 813fc3bbcd
commit b898d1d270
4 changed files with 36 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
// 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:flutter_devicelab/framework/devices.dart';
import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/tasks/perf_tests.dart';
Future<void> main() async {
deviceOperatingSystem = DeviceOperatingSystem.android;
await task(createAndroidTextureScrollPerfTest(enableImpeller: true));
}

View File

@@ -70,12 +70,14 @@ TaskFunction createUiKitViewScrollPerfNonIntersectingTest({bool? enableImpeller}
).run;
}
TaskFunction createAndroidTextureScrollPerfTest() {
TaskFunction createAndroidTextureScrollPerfTest({bool? enableImpeller}) {
return PerfTest(
'${flutterDirectory.path}/dev/benchmarks/platform_views_layout',
'test_driver/android_view_scroll_perf.dart',
'platform_views_scroll_perf',
testDriver: 'test_driver/scroll_perf_test.dart',
needsFullTimeline: false,
enableImpeller: enableImpeller,
).run;
}