add more systraces

Reviewed By: alexeylang

Differential Revision: D4998351

fbshipit-source-id: a5c3ad829400b23aec49a2b919ab3fc7fc20c07b
This commit is contained in:
Aaron Chiu
2017-05-04 13:34:51 -07:00
committed by Facebook Github Bot
parent bc4de008d3
commit 857be044cc
3 changed files with 40 additions and 25 deletions

View File

@@ -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;
}