Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

Development

Successfully merging this pull request may close these issues.

3 participants