mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52838 **Context** Experimental V2 Performance Monitor prototype, beginning by bringing the [Interaction to Next Paint (INP)](https://web.dev/articles/inp) metric to React Native. **This diff** Wires up a client/subscriber for the `"__chromium_devtools_metrics_reporter"` runtime binding (to which we emit live metrics events since D78904748). This will be used to unpack these performance updates to send to the host platform. - Creates a new `HostRuntimeBinding` helper, which establishes a local/private CDP session. - Conditionally installs our perf metrics runtime binding in `HostTarget` when `perfMonitorV2Enabled` is set. - Wires up a new `onPerfMonitorUpdate` event on `HostTargetDelegate` (unimplemented until the next diff). Changelog: [Internal] Reviewed By: hoxyq Differential Revision: D78904766 fbshipit-source-id: 991f17a4cc69f574917750053a5da31bbc6dc0d5