Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support timeline can be enabled in release mode #14521

Merged
merged 2 commits into from
Dec 17, 2019

Conversation

yuanhuihui
Copy link
Contributor

The timeline function needs ServiceIsolate to cooperate with it, so it will be controlled by the SUPPORT_TIMELINE macro and FLAG_support_service, but systrace does not require ServiceIsolate to work properly.

SUPPORT_TIMELINE macro should be used to determine whether to enable systrace in release mode. For android, systrace is supported in release mode by default. When using a hybrid project of android native and flutter, we can control the SUPPORT_TIMELINE macro through a script to decide whether to enable systrace in release mode, which is used to assist in analyzing performance issues in production.

endless_trace_buffer, trace_startup, trace_skia, trace_systrace, these trace-related parameter assignments should be put together to initialize more clearly. By default, SUPPORT_TIMELINE is turned off, so it will not affect the current logic.

I have submitted PRs to better support systrace,as below:

@auto-assign auto-assign bot requested a review from cbracken December 17, 2019 04:34
@yuanhuihui yuanhuihui changed the title Support timeline can enabled in release mode Support timeline can be enabled in release mode Dec 17, 2019
@yuanhuihui
Copy link
Contributor Author

yuanhuihui commented Dec 17, 2019

Enable SUPPORT_TIMELINE macro, capture systrace in release mode as below:

image

@yuanhuihui
Copy link
Contributor Author

relation to flutter/flutter#47771

filmil pushed a commit to filmil/engine that referenced this pull request Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
3 participants