Skip to content

Conversation

@emily8rown
Copy link
Contributor

Summary:
Changelog: [General][Added] - Add ResourceReceivedData trace events for network data chunks in Performance timeline

Wire up NetworkReporter::reportDataReceived to emit ResourceReceivedData trace events for the React Native DevTools Performance panel.

This adds a new trace event type that captures when chunked response data is received during network requests. The event is emitted when React Native treats a response as incremental/chunked (when incrementalUpdates && responseType == "text"), matching the existing behavior of CDP's Network.dataReceived event.

The implementation follows the same pattern as the existing ResourceSendRequest, ResourceReceiveResponse, and ResourceFinish events in PerformanceTracer.

Differential Revision: D89050646

@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 Dec 12, 2025
@meta-codesync
Copy link

meta-codesync bot commented Dec 12, 2025

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

…ok#54870)

Summary:

Changelog: [General][Added] - Add ResourceReceivedData trace events for network data chunks in Performance timeline

Wire up `NetworkReporter::reportDataReceived` to emit `ResourceReceivedData` trace events for the React Native DevTools Performance panel.

This adds a new trace event type that captures when chunked response data is received during network requests. The event is emitted when React Native treats a response as incremental/chunked (when `incrementalUpdates && responseType == "text"`), matching the existing behavior of CDP's `Network.dataReceived` event.

The implementation follows the same pattern as the existing `ResourceSendRequest`, `ResourceReceiveResponse`, and `ResourceFinish` events in PerformanceTracer.

Differential Revision: D89050646
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 meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants