Fix the first frame logic in tracing and driver (#35297)
This should fix https://github.com/flutter/flutter/issues/31442 and https://github.com/flutter/flutter/issues/34867
This commit is contained in:
@@ -13,6 +13,9 @@ void main() {
|
||||
|
||||
setUpAll(() async {
|
||||
driver = await FlutterDriver.connect();
|
||||
|
||||
// TODO(liyuqian): enable the following once it's proved to be non-flaky by transition_perf_test.dart.
|
||||
// await driver.waitUntilFirstFrameRasterized();
|
||||
});
|
||||
|
||||
tearDownAll(() async {
|
||||
|
||||
@@ -159,6 +159,7 @@ class StartupTest {
|
||||
|
||||
return TaskResult.success(data, benchmarkScoreKeys: <String>[
|
||||
'timeToFirstFrameMicros',
|
||||
'timeToFirstFrameRasterizedMicros',
|
||||
]);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -251,6 +251,7 @@ tasks:
|
||||
description: >
|
||||
Measures the startup time of the Complex Layout sample app on Android.
|
||||
stage: devicelab
|
||||
flaky: true
|
||||
required_agent_capabilities: ["mac/android"]
|
||||
|
||||
hot_mode_dev_cycle__benchmark:
|
||||
@@ -448,12 +449,14 @@ tasks:
|
||||
description: >
|
||||
Measures the startup time of the Flutter Gallery app on iPhone 6.
|
||||
stage: devicelab_ios
|
||||
flaky: true
|
||||
required_agent_capabilities: ["mac/ios"]
|
||||
|
||||
complex_layout_ios__start_up:
|
||||
description: >
|
||||
Measures the startup time of the Complex Layout sample app on iPhone 6.
|
||||
stage: devicelab_ios
|
||||
flaky: true
|
||||
required_agent_capabilities: ["mac/ios"]
|
||||
|
||||
flutter_gallery_ios__transition_perf:
|
||||
@@ -461,6 +464,7 @@ tasks:
|
||||
Measures the performance of screen transitions in Flutter Gallery on
|
||||
iOS.
|
||||
stage: devicelab_ios
|
||||
flaky: true
|
||||
required_agent_capabilities: ["mac/ios"]
|
||||
|
||||
hello_world_ios__compile:
|
||||
@@ -565,6 +569,7 @@ tasks:
|
||||
description: >
|
||||
Measures the startup time of the Flutter Gallery app on Android.
|
||||
stage: devicelab
|
||||
flaky: true
|
||||
required_agent_capabilities: ["linux/android"]
|
||||
|
||||
flutter_gallery__transition_perf:
|
||||
@@ -572,6 +577,7 @@ tasks:
|
||||
Measures the performance of screen transitions in Flutter Gallery on
|
||||
Android.
|
||||
stage: devicelab
|
||||
flaky: true
|
||||
required_agent_capabilities: ["linux/android"]
|
||||
|
||||
flutter_gallery__transition_perf_with_semantics:
|
||||
@@ -579,6 +585,7 @@ tasks:
|
||||
Measures the delta in performance of screen transitions without and
|
||||
with semantics enabled.
|
||||
stage: devicelab
|
||||
flaky: true
|
||||
required_agent_capabilities: ["linux/android"]
|
||||
|
||||
flutter_gallery__memory_nav:
|
||||
@@ -617,6 +624,7 @@ tasks:
|
||||
description: >
|
||||
Measures the startup time of the Flutter Gallery app on 32-bit iOS (iPhone 4S).
|
||||
stage: devicelab_ios
|
||||
flaky: true
|
||||
required_agent_capabilities: ["mac/ios32"]
|
||||
|
||||
flutter_gallery_ios32__transition_perf:
|
||||
@@ -624,6 +632,7 @@ tasks:
|
||||
Measures the performance of screen transitions in Flutter Gallery on
|
||||
32-bit iOS (iPhone 4S).
|
||||
stage: devicelab_ios
|
||||
flaky: true
|
||||
required_agent_capabilities: ["mac/ios32"]
|
||||
|
||||
run_without_leak_mac:
|
||||
|
||||
Reference in New Issue
Block a user