Skip to content

Compile devtools with release mode (no dart2js optimization set) - #7485

Merged
elliette merged 2 commits into
flutter:masterfrom
elliette:profile-build
Mar 27, 2024
Merged

elliette merged 2 commits into
flutter:masterfrom
elliette:profile-build

Conversation

@elliette

@elliette elliette commented Mar 27, 2024 •

Copy link
Copy Markdown
Member

Fixes Dart-Code/Dart-Code#5049

Without this change, seeing infinite spinner:

Screenshot 2024-03-27 at 2 33 21 PM

With this change, Flutter sidebar loads:

Screenshot 2024-03-27 at 2 39 49 PM

@elliette

elliette commented Mar 27, 2024 •

Copy link
Copy Markdown
Member Author

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

@elliette elliette changed the title Compile devtools with profile mode Compile devtools with release mode (no dart2js optimization set) Mar 27, 2024
Comment on lines -98 to -99
// Enable default optimizations: https://dart.dev/tools/dart-compile#js
'--dart2js-optimization=O1',

Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Member Author

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-submit

auto-submit Bot commented Mar 27, 2024

Copy link
Copy Markdown

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.

@elliette
elliette merged commit 05714bd into flutter:master Mar 27, 2024
@elliette elliette mentioned this pull request Mar 27, 2024
3 tasks done
copybara-service Bot pushed a commit to dart-lang/sdk that referenced this pull request Mar 28, 2024
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 <[email protected]>
Reviewed-by: Jacob Richman <[email protected]>
Commit-Queue: Elliott Brooks <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sidebar does not load on current Flutter master

2 participants