Skip to content

Remove Perf Monitor hooks from DevSupport API#53349

Closed
huntie wants to merge 2 commits into
facebook:mainfrom
huntie:export-D80464093
Closed

Remove Perf Monitor hooks from DevSupport API#53349
huntie wants to merge 2 commits into
facebook:mainfrom
huntie:export-D80464093

Conversation

@huntie
Copy link
Copy Markdown
Member

@huntie huntie commented Aug 19, 2025

Summary:
Follows feedback on D78904767, refactoring how we pass data to PerfMonitorOverlayViewManager to avoid API additions on DevSupport.

New interfaces under com.facebook.react.devsupport.perfmonitor:

  • PerfMonitorUpdateListener is implemented by the view class to receive updates from the C++ HostTargetDelegate.
  • PerfMonitorInspectorTargetBinding exposes an API on ReactHostInspectorTarget to send CDP actions down to C++ (stub for now).
  • PerfMonitorDevHelper allows us to use the internal ReactHostImplDevHelper to expose the ReactHostInspectorTarget instance from the runtime.

Changelog: [Internal]

Reviewed By: cortinico, rshest

Differential Revision: D80464093

@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 Aug 19, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D80464093

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D80464093

Summary:
Pivots our display metric for the V2 Perf Monitor experiment by switching to Long Tasks.

- Implements a new "__ReactNative__LongTask" metrics event (note: prefixed, since this sits outside the Web Vitals spec).

Changelog: [Internal]

Differential Revision: D79556595
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D80464093

Summary:
Pull Request resolved: facebook#53349

Follows feedback on D78904767, refactoring how we pass data to `PerfMonitorOverlayViewManager` to avoid API additions on `DevSupport`.

New interfaces under `com.facebook.react.devsupport.perfmonitor`:

- `PerfMonitorUpdateListener` is implemented by the view class to receive updates from the C++ `HostTargetDelegate`.
- `PerfMonitorInspectorTargetBinding` exposes an API on `ReactHostInspectorTarget` to send CDP actions down to C++ (stub for now).
- `PerfMonitorDevHelper` allows us to use the internal `ReactHostImplDevHelper` to expose the `ReactHostInspectorTarget` instance from the runtime.

Changelog: [Internal]

Reviewed By: cortinico, rshest

Differential Revision: D80464093
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D80464093

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 21, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 3d1d81c.

@huntie huntie deleted the export-D80464093 branch August 21, 2025 14:31
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. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants