mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
add more systraces
Reviewed By: alexeylang Differential Revision: D4998351 fbshipit-source-id: a5c3ad829400b23aec49a2b919ab3fc7fc20c07b
This commit is contained in:
1 parent
bc4de008d3
commit
857be044cc
3 files changed
+40
-25
No files matched your search
@@ -184,6 +184,9 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
|
||||
* NB: this method is horribly not-thread-safe.
|
||||
*/
|
||||
public int addMeasuredRootView(final SizeMonitoringFrameLayout rootView) {
|
||||
Systrace.beginSection(
|
||||
Systrace.TRACE_TAG_REACT_JAVA_BRIDGE,
|
||||
"UIManagerModule.addMeasuredRootView");
|
||||
final int tag = mNextRootViewTag;
|
||||
mNextRootViewTag += ROOT_VIEW_TAG_INCREMENT;
|
||||
|
||||
@@ -220,6 +223,7 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
|
||||
}
|
||||
});
|
||||
|
||||
Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE);
|
||||
return tag;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user