Add a benchmark for simple DisplayLists to exercise the Raster Cache's cache admission algorithm (#97992)
This commit is contained in:
@@ -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(createPictureCacheComplexityScoringPerfTest());
|
||||
}
|
||||
@@ -215,6 +215,15 @@ TaskFunction createPictureCachePerfE2ETest() {
|
||||
).run;
|
||||
}
|
||||
|
||||
TaskFunction createPictureCacheComplexityScoringPerfTest() {
|
||||
return PerfTest(
|
||||
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
|
||||
'test_driver/run_app.dart',
|
||||
'picture_cache_complexity_scoring_perf',
|
||||
testDriver: 'test_driver/picture_cache_complexity_scoring_perf_test.dart',
|
||||
).run;
|
||||
}
|
||||
|
||||
TaskFunction createFlutterGalleryStartupTest({String target = 'lib/main.dart'}) {
|
||||
return StartupTest(
|
||||
'${flutterDirectory.path}/dev/integration_tests/flutter_gallery',
|
||||
|
||||
Reference in New Issue
Block a user