Animated placeholder perf (#50851)
This commit is contained in:
12
dev/devicelab/bin/tasks/animated_placeholder_perf.dart
Normal file
12
dev/devicelab/bin/tasks/animated_placeholder_perf.dart
Normal 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/adb.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(createAnimatedPlaceholderPerfTest());
|
||||
}
|
||||
@@ -81,6 +81,15 @@ TaskFunction createSimpleAnimationPerfTest({bool needsMeasureCpuGpu = false}) {
|
||||
).run;
|
||||
}
|
||||
|
||||
TaskFunction createAnimatedPlaceholderPerfTest({bool needsMeasureCpuGpu = false}) {
|
||||
return PerfTest(
|
||||
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
|
||||
'test_driver/animated_placeholder_perf.dart',
|
||||
'animated_placeholder_perf',
|
||||
needsMeasureCpuGPu: needsMeasureCpuGpu,
|
||||
).run;
|
||||
}
|
||||
|
||||
TaskFunction createPictureCachePerfTest() {
|
||||
return PerfTest(
|
||||
'${flutterDirectory.path}/dev/benchmarks/macrobenchmarks',
|
||||
|
||||
@@ -700,6 +700,14 @@ tasks:
|
||||
stage: devicelab
|
||||
required_agent_capabilities: ["mac/android"]
|
||||
|
||||
animated_placeholder_perf:
|
||||
description: >
|
||||
Measures frame build and rasterizer times, as well as frame build counts
|
||||
for a grid of images that uses FadeInImage with an animated gif as the
|
||||
placeholder.
|
||||
stage: devicelab
|
||||
required_agent_capabilities: ["linux/android"]
|
||||
|
||||
analyzer_benchmark:
|
||||
description: >
|
||||
Measures the speed of Dart analyzer.
|
||||
|
||||
Reference in New Issue
Block a user