mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-24 21:58:58 +08:00
add more systraces
Reviewed By: alexeylang Differential Revision: D4998351 fbshipit-source-id: a5c3ad829400b23aec49a2b919ab3fc7fc20c07b
This commit is contained in:
committed by
Facebook Github Bot
parent
bc4de008d3
commit
857be044cc
@@ -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