SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

Add performance track for React Native renderer (#56003)

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

Changelog: [General][Added] Add new custom track for React Native Renderer operations in React Native DevTools performance traces

This diff adds performance tracking instrumentation to the React Native renderer to provide visibility into rendering operations in React Native Developer Tools traces.

On Android (Kotlin), the `MountItemDispatcher` is updated to wrap key mounting operations (view commands, premount, and mount) with `PerformanceTracer.trace` calls. These traces appear on the "Renderer" track within the "⚛ Native" track group.

On C++ (shared renderer), the `ShadowTree::tryCommit` method is instrumented with `PerformanceTracerSection` to track commit and layout operations. The commit trace includes metadata about the source of the commit (e.g., React).

This is a reland of a previously reverted change.

Reviewed By: huntie

Differential Revision: D95817614

fbshipit-source-id: 4d6be2732c6412479997a79741ec4043e20971b4
R
Rubén Norte committed
29bc8f1acb2cc9a4016c4bdf032f5b53474558bf
Parent: f71ec1a
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com> on 3/10/2026, 1:12:20 AM