-
Notifications
You must be signed in to change notification settings - Fork 364
Compile devtools with release mode (no dart2js optimization set)
#7485
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
Conversation
|
@kenzieschmoll pointed out we have a lot of checks for whether we are in release mode (e.g. to collect analytics). Switching to just plain release mode instead of profile mode without setting the dart2js optimization level. |
profile moderelease mode (no dart2js optimization set)
| // Enable default optimizations: https://dart.dev/tools/dart-compile#js | ||
| '--dart2js-optimization=O1', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need the --release arg here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, that's passed as the buildMode (below)
|
auto label is removed for flutter/devtools/7485, due to - The status or check suite Verify PR Release Note Requirements has failed. Please fix the issues identified (or deflake) before re-applying this label. |
Follow up to https://dart-review.googlesource.com/c/sdk/+/360181 with one more patch: flutter/devtools#7485 Bug: flutter/devtools#7483 Change-Id: Ia2a93c783827d7e894ac139ecba9850edc8dff20 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/360123 Reviewed-by: Kenzie Davisson <kenzieschmoll@google.com> Reviewed-by: Jacob Richman <jacobr@google.com> Commit-Queue: Elliott Brooks <elliottbrooks@google.com>
Fixes Dart-Code/Dart-Code#5049
Without this change, seeing infinite spinner:
With this change, Flutter sidebar loads: