Fix setupReactContext systrace

Summary: setupReactContext wasn't ending because D9664719 added incorrect end markers. Need to use either Systrace.endSection() or SystraceMessage.endSection().flush().

Differential Revision: D9695854

fbshipit-source-id: e0f7d492bc58536ce242962438edac7eec671867
This commit is contained in:
Andrew Chen (Eng) 2018-09-06 20:56:37 -07:00 committed by Facebook Github Bot
parent c3e42b5531
commit f38ab24a19

View File

@ -219,7 +219,7 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
try {
return UIManagerModuleConstantsHelper.createConstants(viewManagerResolver);
} finally {
SystraceMessage.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE);
Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE);
ReactMarker.logMarker(CREATE_UI_MANAGER_MODULE_CONSTANTS_END);
}
}
@ -237,7 +237,7 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
return UIManagerModuleConstantsHelper.createConstants(
viewManagers, customBubblingEvents, customDirectEvents);
} finally {
SystraceMessage.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE);
Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE);
ReactMarker.logMarker(CREATE_UI_MANAGER_MODULE_CONSTANTS_END);
}
}