-
Notifications
You must be signed in to change notification settings - Fork 48.8k
DevTools: Refactor Profiler supported status and UI #23157
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
DevTools: Refactor Profiler supported status and UI #23157
Conversation
React will call the DevTools profiling hooks unconditionally (for DEV and profiling builds) but DevTools will only log the data to the User Timing API when DevTools is profiling.
Comparing: 505c15c...1d6352c Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
17969bd
to
1c94a1c
Compare
React will call the DevTools profiling hooks unconditionally (for DEV and profiling builds) but DevTools will only log the data to the User Timing API when DevTools is profiling.
1. Backend reports legacy profiling support and timeline profiling support separately to the frontend. 2. Store repots static and dynamic/per-root profiling capabilities separately now. (This was previously kind of a bug.) 3. Timeline and legacy profiler buttons ("import data" and "clear data") are now no longer tab specific.
1c94a1c
to
301fe89
Compare
This was accidentally deleted in the previous commit.
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.
Approved pending changes we talked about (deleting the accidental code commit and the rename of legacy etc. to basic support!)
Thank you for the review! I'm going to squash all of these PRs and commits here: I'll based my next branch off of that :) |
Squashed into #23158 |
Builds on top of #23141.
This PR makes a few incremental changes to the store and profiler UI:
This PR adds the following commits:
Related to #22529.
UI changes
Timeline: No data
Timeline: Not supported
Timeline: Not supported (Facebook internal build)
Note that this PR (in isolation) makes the Timeline profiler feature unusable. It will be part of a stack of PRs that will be merged together once finished.