File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
ReactAndroid/src/main/jni/react/fabric
ReactCommon/react/renderer Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,8 @@ jni::local_ref<jobject> FabricMountingManager::getProps(
253253
254254void FabricMountingManager::executeMount (
255255 const MountingTransaction &transaction) {
256+ SystraceSection section (" FabricMountingManager::executeMount" );
257+
256258 std::lock_guard<std::recursive_mutex> lock (commitMutex_);
257259 auto finishTransactionStartTime = telemetryTimePointNow ();
258260
Original file line number Diff line number Diff line change 1515#include < condition_variable>
1616
1717#include < react/debug/react_native_assert.h>
18+ #include < react/renderer/debug/SystraceSection.h>
1819#include < react/renderer/mounting/ShadowViewMutation.h>
1920
2021namespace facebook ::react {
@@ -76,6 +77,8 @@ void MountingCoordinator::resetLatestRevision() const {
7677
7778std::optional<MountingTransaction> MountingCoordinator::pullTransaction ()
7879 const {
80+ SystraceSection section (" MountingCoordinator::pullTransaction" );
81+
7982 std::lock_guard<std::mutex> lock (mutex_);
8083
8184 auto transaction = std::optional<MountingTransaction>{};
Original file line number Diff line number Diff line change @@ -633,6 +633,8 @@ RootShadowNode::Unshared UIManager::shadowTreeWillCommit(
633633 ShadowTree const &shadowTree,
634634 RootShadowNode::Shared const &oldRootShadowNode,
635635 RootShadowNode::Unshared const &newRootShadowNode) const {
636+ SystraceSection s (" UIManager::shadowTreeWillCommit" );
637+
636638 std::shared_lock lock (commitHookMutex_);
637639
638640 auto resultRootShadowNode = newRootShadowNode;
@@ -656,6 +658,8 @@ void UIManager::shadowTreeDidFinishTransaction(
656658}
657659
658660void UIManager::reportMount (SurfaceId surfaceId) const {
661+ SystraceSection s (" UIManager::reportMount" );
662+
659663 auto time = JSExecutor::performanceNow ();
660664
661665 auto rootShadowNode = RootShadowNode::Shared{};
You can’t perform that action at this time.
0 commit comments