mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-11 11:29:03 +08:00
Stop SystraceMessage markers with SystraceMessage.endSection
Reviewed By: javache Differential Revision: D5182628 fbshipit-source-id: f5112a434cb7564410b0e2e69840e45a0777a184
This commit is contained in:
committed by
Facebook Github Bot
parent
964c3a1b7a
commit
46b3a89a70
@@ -20,7 +20,6 @@ import com.facebook.react.bridge.ReactMarker;
|
||||
import com.facebook.react.bridge.ReactMarkerConstants;
|
||||
import com.facebook.react.module.model.ReactModuleInfoProvider;
|
||||
import com.facebook.react.uimanager.ViewManager;
|
||||
import com.facebook.systrace.Systrace;
|
||||
import com.facebook.systrace.SystraceMessage;
|
||||
|
||||
import static com.facebook.systrace.Systrace.TRACE_TAG_REACT_JAVA_BRIDGE;
|
||||
@@ -82,7 +81,7 @@ public abstract class LazyReactPackage implements ReactPackage {
|
||||
nativeModule = holder.getProvider().get();
|
||||
} finally {
|
||||
ReactMarker.logMarker(ReactMarkerConstants.CREATE_MODULE_END);
|
||||
Systrace.endSection(TRACE_TAG_REACT_JAVA_BRIDGE);
|
||||
SystraceMessage.endSection(TRACE_TAG_REACT_JAVA_BRIDGE).flush();
|
||||
}
|
||||
modules.add(nativeModule);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user