Skip to content

Conversation

@motiz88
Copy link

@motiz88 motiz88 commented Apr 12, 2024

Summary

Note

NOTE: Stacked on #42 - please review only the last commit.

Creates a new RN-specific experiment titled "Enable Performance panel". Outside of the RN entry points, this defaults to true and isn't configurable as an experiment. In Fusebox (only), this new experiment can be enabled in Settings.

The Fusebox backend only has stub support for the Performance panel (facebook/react-native#44004) so this is definitely not ready for widespread use. An experiment flag will help us iterate on Performance support without constantly rebuilding CDT.

Test plan

  • inspector.html has the Performance panel and doesn't show the experiment in Settings.
  • rn_inspector.html has the legacy Profiler panel and doesn't show the experiment in Settings.
  • rn_fusebox.html boots without either Performance or JavaScript Profiler. Either/both can be enabled via Settings.

Upstreaming plan

  • This commit should be sent as a patch to the upstream devtools-frontend repo. I've reviewed the contribution guide.
  • This commit is React Native-specific and cannot be upstreamed.

@motiz88 motiz88 merged commit 35aa264 into facebook:main Apr 12, 2024
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.

3 participants