Skip to content

Don't flash the performance monitor there's no metro connection#54019

Closed
sbuggay wants to merge 2 commits intofacebook:mainfrom
sbuggay:export-D83701372
Closed

Don't flash the performance monitor there's no metro connection#54019
sbuggay wants to merge 2 commits intofacebook:mainfrom
sbuggay:export-D83701372

Conversation

@sbuggay
Copy link
Contributor

@sbuggay sbuggay commented Oct 1, 2025

Summary:
Currently the performance monitor flickers on boot if there's no metro connection. This change checks first if we have a packager before enabling the monitor.

No metro connection:
{F1982423105}

Metro connection:
{F1982423112}

Changelog: [Internal]

Differential Revision: D83701372

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 1, 2025
@meta-codesync
Copy link

meta-codesync bot commented Oct 1, 2025

@sbuggay has exported this pull request. If you are a Meta employee, you can view the originating Diff in D83701372.

Summary:

The DevMenu path for perf analyzing no-ops. This is due to incorrectly not inverting the bool result of `pauseAndAnalyzeBackgroundTrace()`. See https://www.internalfb.com/code/fbsource/%5Bfcebbc02e701%5D/xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/perfmonitor/PerfMonitorOverlayManager.kt?lines=73-75.

{F1982418482}

Changelog: [Internal]

Reviewed By: shwanton

Differential Revision: D83691623
…book#54019)

Summary:

Currently the performance monitor flickers on boot if there's no metro connection. This change checks first if we have a packager before enabling the monitor.

No metro connection:
{F1982423105}

Metro connection:
{F1982423112}

Changelog: [Internal]

Reviewed By: shwanton

Differential Revision: D83701372
sbuggay added a commit to sbuggay/react-native that referenced this pull request Oct 2, 2025
…book#54019)

Summary:

Currently the performance monitor flickers on boot if there's no metro connection. This change checks first if we have a packager before enabling the monitor.

No metro connection:
{F1982423105}

Metro connection:
{F1982423112}

Changelog: [Internal]

Reviewed By: shwanton

Differential Revision: D83701372
@meta-codesync meta-codesync bot closed this in 53dc68a Oct 2, 2025
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Oct 2, 2025
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 53dc68a.

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 Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants