Skip to content

Commit 95216bc

Browse files
hoxyqmeta-codesync[bot]
authored andcommitted
Increase the size of the chunk of ProfileChunk events (facebook#54352)
Summary: Pull Request resolved: facebook#54352 # Changelog: [Internal] Since we can now avoid disconnections, it should be safe to increase the chunk size. This should improve the trace loading time. Reviewed By: huntie Differential Revision: D85937959 fbshipit-source-id: 4f0ef023a4d756217de0c756dbc1decbd99698d4
1 parent 728dfef commit 95216bc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/react-native/ReactCommon/jsinspector-modern/TracingAgent.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,8 @@ const uint16_t TRACE_EVENT_CHUNK_SIZE = 1000;
2626
/**
2727
* The maximum number of ProfileChunk trace events
2828
* that will be sent in a single CDP Tracing.dataCollected message.
29-
* TODO(T219394401): Increase the size once we manage the queue on OkHTTP
30-
side
31-
* properly and avoid WebSocket disconnections when sending a message larger
32-
* than 16MB.
3329
*/
34-
const uint16_t PROFILE_TRACE_EVENT_CHUNK_SIZE = 1;
30+
const uint16_t PROFILE_TRACE_EVENT_CHUNK_SIZE = 10;
3531

3632
} // namespace
3733

0 commit comments

Comments
 (0)