diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountItemDispatcher.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountItemDispatcher.java index a158825274a..53c9ce0eb54 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountItemDispatcher.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountItemDispatcher.java @@ -221,7 +221,7 @@ public class MountItemDispatcher { if (viewCommandMountItemsToDispatch != null) { Systrace.beginSection( Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, - "FabricUIManager::mountViews viewCommandMountItems"); + "MountItemDispatcher::mountViews viewCommandMountItems"); for (DispatchCommandMountItem command : viewCommandMountItemsToDispatch) { if (ENABLE_FABRIC_LOGS) { printMountItem(command, "dispatchMountItems: Executing viewCommandMountItem"); @@ -263,7 +263,7 @@ public class MountItemDispatcher { Collection preMountItemsToDispatch = getAndResetPreMountItems(); if (preMountItemsToDispatch != null) { Systrace.beginSection( - Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "FabricUIManager::mountViews preMountItems"); + Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "MountItemDispatcher::mountViews preMountItems"); for (MountItem preMountItem : preMountItemsToDispatch) { if (ENABLE_FABRIC_LOGS) { printMountItem(preMountItem, "dispatchMountItems: Executing preMountItem"); @@ -277,7 +277,7 @@ public class MountItemDispatcher { if (mountItemsToDispatch != null) { Systrace.beginSection( Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, - "FabricUIManager::mountViews mountItems to execute"); + "MountItemDispatcher::mountViews mountItems to execute"); long batchedExecutionStartTime = SystemClock.uptimeMillis(); @@ -314,12 +314,12 @@ public class MountItemDispatcher { } } mBatchedExecutionTime += SystemClock.uptimeMillis() - batchedExecutionStartTime; + + Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE); } mItemDispatchListener.didMountItems(mountItemsToDispatch); - Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE); - return true; } @@ -337,7 +337,8 @@ public class MountItemDispatcher { return; } - Systrace.beginSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "FabricUIManager::premountViews"); + Systrace.beginSection( + Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "MountItemDispatcher::premountViews"); // dispatchPreMountItems cannot be reentrant, but we want to prevent dispatchMountItems from // reentering during dispatchPreMountItems diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java index c574a2724c5..40e159669e4 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java @@ -75,7 +75,8 @@ final class IntBufferBatchMountItem implements BatchMountItem { } private void beginMarkers(String reason) { - Systrace.beginSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "FabricUIManager::" + reason); + Systrace.beginSection( + Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "IntBufferBatchMountItem::" + reason); if (mCommitNumber > 0) { ReactMarker.logFabricMarker(