Reland "Fix the first frame logic in tracing and driver (#35297)" (#37192)

This relands https://github.com/flutter/flutter/pull/35297

The followings have been done to fix the broken tests:
  1. Add `didSendFirstFrameRasterizedEvent` extension and its tests
  2. Wait for `didSendFirstFrameRasterizedEvent` instead of
     `didSendFirstFrameEvent` during start up tests
  3. Mark missed (probably newly added) start up tests as flaky
This commit is contained in:
liyuqian
2019-07-31 11:01:52 -07:00
committed by GitHub
parent f0957abcd0
commit e77237d6d3
12 changed files with 151 additions and 17 deletions

View File

@@ -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 {

View File

@@ -159,6 +159,7 @@ class StartupTest {
return TaskResult.success(data, benchmarkScoreKeys: <String>[
'timeToFirstFrameMicros',
'timeToFirstFrameRasterizedMicros',
]);
});
}

View File

@@ -244,12 +244,14 @@ tasks:
description: >
Verifies that Platform View can be used from an Android project.
stage: devicelab
flaky: true
required_agent_capabilities: ["mac/android"]
complex_layout__start_up:
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:
@@ -293,6 +295,7 @@ tasks:
description: >
Verifies that Flutter View can be used from an Android project.
stage: devicelab
flaky: true
required_agent_capabilities: ["mac/android"]
integration_ui:
@@ -434,6 +437,7 @@ tasks:
description: >
Verifies that Platform View can be used from an iOS project.
stage: devicelab_ios
flaky: true
required_agent_capabilities: ["mac/ios"]
complex_layout_scroll_perf_ios__timeline_summary:
@@ -447,12 +451,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:
@@ -460,6 +466,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:
@@ -479,6 +486,7 @@ tasks:
description: >
Verifies that Flutter View can be used from an iOS project.
stage: devicelab_ios
flaky: true
required_agent_capabilities: ["mac/ios"]
integration_ui_ios:
@@ -564,6 +572,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:
@@ -571,6 +580,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:
@@ -578,6 +588,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:
@@ -616,6 +627,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:
@@ -623,6 +635,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: