@@ -54,21 +54,11 @@ TaskFunction createCubicBezierPerfTest() {
5454 ).run;
5555}
5656
57- TaskFunction createBackdropFilterPerfTest ({ bool needsMeasureCpuGpu = false } ) {
57+ TaskFunction createBackdropFilterPerfTest () {
5858 return PerfTest (
5959 '${flutterDirectory .path }/dev/benchmarks/macrobenchmarks' ,
6060 'test_driver/backdrop_filter_perf.dart' ,
6161 'backdrop_filter_perf' ,
62- needsMeasureCpuGPu: needsMeasureCpuGpu,
63- ).run;
64- }
65-
66- TaskFunction createSimpleAnimationPerfTest ({bool needsMeasureCpuGpu = false }) {
67- return PerfTest (
68- '${flutterDirectory .path }/dev/benchmarks/macrobenchmarks' ,
69- 'test_driver/simple_animation_perf.dart' ,
70- 'simple_animation_perf' ,
71- needsMeasureCpuGPu: needsMeasureCpuGpu,
7262 ).run;
7363}
7464
@@ -178,18 +168,12 @@ class StartupTest {
178168/// Measures application runtime performance, specifically per-frame
179169/// performance.
180170class PerfTest {
181- const PerfTest (
182- this .testDirectory,
183- this .testTarget,
184- this .timelineFileName,
185- {this .needsMeasureCpuGPu = false });
171+ const PerfTest (this .testDirectory, this .testTarget, this .timelineFileName);
186172
187173 final String testDirectory;
188174 final String testTarget;
189175 final String timelineFileName;
190176
191- final bool needsMeasureCpuGPu;
192-
193177 Future <TaskResult > run () {
194178 return inDirectory <TaskResult >(testDirectory, () async {
195179 final Device device = await devices.workingDevice;
@@ -218,12 +202,6 @@ class PerfTest {
218202 );
219203 }
220204
221- if (needsMeasureCpuGPu) {
222- await inDirectory <void >('$testDirectory /build' , () async {
223- data.addAll (await measureIosCpuGpu (deviceId: deviceId));
224- });
225- }
226-
227205 return TaskResult .success (data, benchmarkScoreKeys: < String > [
228206 'average_frame_build_time_millis' ,
229207 'worst_frame_build_time_millis' ,
@@ -235,8 +213,6 @@ class PerfTest {
235213 'missed_frame_rasterizer_budget_count' ,
236214 '90th_percentile_frame_rasterizer_time_millis' ,
237215 '99th_percentile_frame_rasterizer_time_millis' ,
238- if (needsMeasureCpuGPu) 'cpu_percentage' ,
239- if (needsMeasureCpuGPu) 'gpu_percentage' ,
240216 ]);
241217 });
242218 }
0 commit comments