mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Refactor and separate layout affected nodes react marker (#39249)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39249 Changelog: [Internal] - Code refactor on affected nodes in react marker. Reviewed By: rshest Differential Revision: D48884903 fbshipit-source-id: d09ec8ad398818589c4fdfa8d64bf8a7e5627e43
This commit is contained in:
1 parent
0e5ea28905
commit
5998320887
3 files changed
+7
-3
No files matched your search
+1
@@ -115,6 +115,7 @@ public enum ReactMarkerConstants {
|
||||
FABRIC_DIFF_END,
|
||||
FABRIC_LAYOUT_START,
|
||||
FABRIC_LAYOUT_END,
|
||||
FABRIC_LAYOUT_AFFECTED_NODES,
|
||||
FABRIC_BATCH_EXECUTION_START,
|
||||
FABRIC_BATCH_EXECUTION_END,
|
||||
FABRIC_UPDATE_UI_MAIN_THREAD_START,
|
||||
|
||||
+3
-2
@@ -188,7 +188,7 @@ public class DevToolsReactPerfLogger implements ReactMarker.FabricMarkerListener
|
||||
}
|
||||
|
||||
public int getAffectedLayoutNodesCount() {
|
||||
return getCounter(FABRIC_LAYOUT_END);
|
||||
return getCounter(FABRIC_LAYOUT_AFFECTED_NODES);
|
||||
}
|
||||
|
||||
public long getBatchExecutionStart() {
|
||||
@@ -292,6 +292,7 @@ public class DevToolsReactPerfLogger implements ReactMarker.FabricMarkerListener
|
||||
|| name == FABRIC_BATCH_EXECUTION_START
|
||||
|| name == FABRIC_BATCH_EXECUTION_END
|
||||
|| name == FABRIC_UPDATE_UI_MAIN_THREAD_START
|
||||
|| name == FABRIC_UPDATE_UI_MAIN_THREAD_END;
|
||||
|| name == FABRIC_UPDATE_UI_MAIN_THREAD_END
|
||||
|| name == FABRIC_LAYOUT_AFFECTED_NODES;
|
||||
}
|
||||
}
|
||||
+3
-1
@@ -838,7 +838,9 @@ public class FabricUIManager implements UIManager, LifecycleEventListener {
|
||||
ReactMarker.logFabricMarker(
|
||||
ReactMarkerConstants.FABRIC_LAYOUT_START, null, commitNumber, layoutStartTime);
|
||||
ReactMarker.logFabricMarker(
|
||||
ReactMarkerConstants.FABRIC_LAYOUT_END,
|
||||
ReactMarkerConstants.FABRIC_LAYOUT_END, null, commitNumber, layoutEndTime);
|
||||
ReactMarker.logFabricMarker(
|
||||
ReactMarkerConstants.FABRIC_LAYOUT_AFFECTED_NODES,
|
||||
null,
|
||||
commitNumber,
|
||||
layoutEndTime,
|
||||
|
||||
Reference in new issue
Block a user