SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

Use new API for tracing state on Android (#54629)

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

# Changelog: [Internal]

Before this change, every `getTracingState()` call would go through jni to C++ to get the current state synchronously.

This has a risk of data races, since we can't guarantee from which thread the Host will call this method. At the same time, the Tracing could be started from inspector thread, if this was initiated with CDP request.

Instead, the state will be propagated asynchronously via `HostTargetTracingDelegate`, and then it will be encapsulated on the Host side. In android case, this will be part of the `ReactHostInspectorTarget`.

Also removing no longer used code in `jsinspector-modern`.

Reviewed By: sbuggay

Differential Revision: D87123722

fbshipit-source-id: a31ef66f56b35b1d6feaa2963462bbe50ff0ebec
R
Ruslan Lesiutin committed
532d0be200897584cfaf6958eeded783b73fd847
Parent: a212e95
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com> on 11/25/2025, 4:20:00 AM