A framework for building native applications using React
FrameTiming module to subscribe to Inspector tracing lifecycle (#54633)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/54633 # Changelog: [Internal] This introduces a proper lifecycle for a module on Anroid that will emit frames information as part of the trace recording. Previously we would initialize it on a packager connection, which could be problematic, since there is no guarantee that InspectorTarget exists at this time. With the current approach, the lifetime of this object is: - Bound to lifetime of InspectorTarget, it will never outlive it - The actual frames listener lifetime will be bound to tracing state. We no longer will be going through `jni` to check if `PerformanceTracer` is enabled. I've renamed it to `FrameTimingsObserver`and moved to inspector package, since this should be considered as part of the inspector stack. Similarly to `LoadNetworkResource` listeners. I am keeping the `jni` layer with PerformanceTracer for now, but this is about to be removed in the diffs above. The frames information should be propagated through Host, this would allow us to record Frames even if there is no React Native instance, for example, during reloads. Reviewed By: sbuggay Differential Revision: D87345177 fbshipit-source-id: e92ffb29e1761ac8a425a1fbfe27d3edca85ddd4
R
Ruslan Lesiutin committed
04ee02b535ffde812cc101a83ceba6a0cee1421e
Parent: 6793f5c
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com>
on 11/26/2025, 11:55:56 AM