-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
report an event tracking the event loop perf in metro dev middleware #49674
Open
vzaidman
wants to merge
7
commits into
facebook:main
Choose a base branch
from
vzaidman:export-D69988265
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This pull request was exported from Phabricator. Differential Revision: D69988265 |
e482fdb
to
3732b7e
Compare
vzaidman
added a commit
to vzaidman/react-native
that referenced
this pull request
Feb 27, 2025
…acebook#49674) Summary: Changelog: [General][Internal] - report an event tracking the event loop perf in metro dev middleware Differential Revision: D69988265
This pull request was exported from Phabricator. Differential Revision: D69988265 |
vzaidman
added a commit
to vzaidman/react-native
that referenced
this pull request
Feb 27, 2025
…acebook#49674) Summary: Pull Request resolved: facebook#49674 Changelog: [General][Internal] - report an event tracking the event loop perf in metro dev middleware Differential Revision: D69988265
3732b7e
to
ba06c3e
Compare
vzaidman
added a commit
to vzaidman/react-native
that referenced
this pull request
Feb 28, 2025
…acebook#49674) Summary: Changelog: [General][Internal] - report an event tracking the event loop perf in metro dev middleware Reviewed By: hoxyq Differential Revision: D69988265
ba06c3e
to
f8d0f32
Compare
Differential Revision: D70324724
Summary: The terminal status display is not very good with handling interactive status updates: 1. It swallows logs in between, in the very critical moment where we log the initial state of Metro statup. 2. Some logs appear next to updates 3. We end up with ghost update lines, ending up spamming the console with previous status updates. I tried fixing it, and realized it's at least hard (if not impossible if there are several terminal sources like node warnings, console.log, etc...). I think it is not worth maintaining. Instead- I came up with a new heuristic to print only 4 updates for each bundle: * 0%, 33%, 66%, 99%, and then on success. * Also, don't print anything for less than 50 total files being transformed. For smaller bundles we will jump from 0 to success quickly enough. For bigger bundles, by the time we reach 50, we seem to have a more reliable progress indication available despite `totalCount` progressively growing. Changelog: [General][Internal] remove interactive bundling status bars Differential Revision: D70381801
Differential Revision: D70402368
Differential Revision: D70403987
Differential Revision: D70403999
Differential Revision: D69988266
f8d0f32
to
f861a57
Compare
vzaidman
added a commit
to vzaidman/react-native
that referenced
this pull request
Feb 28, 2025
…acebook#49674) Summary: Changelog: [General][Internal] - report an event tracking the event loop perf in metro dev middleware Reviewed By: hoxyq Differential Revision: D69988265
f861a57
to
0fe9e5f
Compare
vzaidman
added a commit
to vzaidman/react-native
that referenced
this pull request
Feb 28, 2025
…acebook#49674) Summary: Changelog: [General][Internal] - report an event tracking the event loop perf in metro dev middleware Reviewed By: hoxyq Differential Revision: D69988265
This pull request was exported from Phabricator. Differential Revision: D69988265 |
vzaidman
added a commit
to vzaidman/react-native
that referenced
this pull request
Feb 28, 2025
…acebook#49674) Summary: Pull Request resolved: facebook#49674 Changelog: [General][Internal] - report an event tracking the event loop perf in metro dev middleware Reviewed By: hoxyq Differential Revision: D69988265
0fe9e5f
to
b64a1fd
Compare
This pull request was exported from Phabricator. Differential Revision: D69988265 |
vzaidman
added a commit
to vzaidman/react-native
that referenced
this pull request
Feb 28, 2025
…acebook#49674) Summary: Pull Request resolved: facebook#49674 Changelog: [General][Internal] - report an event tracking the event loop perf in metro dev middleware Reviewed By: hoxyq Differential Revision: D69988265
b64a1fd
to
d83a606
Compare
…acebook#49674) Summary: Pull Request resolved: facebook#49674 Changelog: [General][Internal] - report an event tracking the event loop perf in metro dev middleware Reviewed By: hoxyq Differential Revision: D69988265
This pull request was exported from Phabricator. Differential Revision: D69988265 |
d83a606
to
6ddd0a7
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
CLA Signed
This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
fb-exported
p: Facebook
Partner: Facebook
Partner
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
Changelog:
[General][Internal] - report an event tracking the event loop perf in metro dev middleware
Differential Revision: D69988265