SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

fix: use ThreadId when event is captured, not when transformed (#53411)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/53411

# Changelog: [Internal]

This regressed after D80263154, when we introduced a local struct for PerforamanceTracerEvent.

We should use id of the thread where event was captured (registered), not where the transform to TraceEvent happened.

This makes sure that events like Event Loop tick or Microtasks phase tick are correctly point to JavaScript thread, not the thread where the transform could've taken place.

Reviewed By: sbuggay

Differential Revision: D80728931

fbshipit-source-id: d3af16e68adece9ebc37368fec2b8a17c1293b4b
R
Ruslan Lesiutin committed
a2a73739d80c6a1d120e16246614ed4894de7b8a
Parent: 046ff8e
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 8/21/2025, 9:18:27 PM