Skip to content

Conversation

liyuqian
Copy link
Contributor

@liyuqian liyuqian commented Aug 2, 2019

The hack here is to flush the timeline events so the host that
waits for the 'Rasterized first useful frame' event won't hang.
Previously 'Widgets built first useful frame' didn't cause this
trouble because the GPU thread will naturally add more events later
and cause a fresh. The Rasterized... event, however, is likely
to be the last (or nearly the last) event during the app start up.

rmacnak and I will figure out a better way to fix it next week.
We're having this quick hack now to fix our device lab performance
tests so we won't miss the data points.

@liyuqian liyuqian requested a review from rmacnak-google August 2, 2019 18:35
@fluttergithubbot
Copy link
Contributor

It looks like this pull request may not have tests. Please make sure to add tests before merging. While there are exceptions to this rule, if this patch modifies code it is probably not an exception.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@fluttergithubbot fluttergithubbot added the framework flutter/packages/flutter repository. See also f: labels. label Aug 2, 2019
@liyuqian
Copy link
Contributor Author

liyuqian commented Aug 2, 2019

@rmacnak-google : would you please help me merge it as soon as all tests turn green in case that I won't have a chance to merge it this afternoon?

Copy link
Contributor

@rmacnak-google rmacnak-google left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@liyuqian liyuqian merged commit 7f77f01 into flutter:master Aug 2, 2019
@liyuqian liyuqian deleted the fix_start_up branch August 7, 2019 16:58
liyuqian added a commit that referenced this pull request Aug 9, 2019
TimelineEvents may not be sent if there aren't enough to form a group.
Hence we should always use ExtensionEvent as the trigger.

See also #37503
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants