mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-06 22:38:37 +08:00
measure conversion of Java Map to WritableNativeMap for each NativeModule
Reviewed By: fkgozali Differential Revision: D4688690 fbshipit-source-id: 871b3f5ab141d7f63ec15b06e44a2c398603d757
This commit is contained in:
committed by
Facebook Github Bot
parent
02a6621e23
commit
70e4a58d5b
@@ -1,4 +1,4 @@
|
||||
/**
|
||||
/**
|
||||
* Copyright (c) 2015-present, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
@@ -23,7 +23,6 @@ import com.facebook.react.animation.Animation;
|
||||
import com.facebook.react.bridge.Callback;
|
||||
import com.facebook.react.bridge.GuardedRunnable;
|
||||
import com.facebook.react.bridge.LifecycleEventListener;
|
||||
import com.facebook.react.bridge.NativeModuleLogger;
|
||||
import com.facebook.react.bridge.OnBatchCompleteListener;
|
||||
import com.facebook.react.bridge.PerformanceCounter;
|
||||
import com.facebook.react.bridge.ReactApplicationContext;
|
||||
@@ -43,8 +42,6 @@ import com.facebook.systrace.SystraceMessage;
|
||||
|
||||
import static com.facebook.react.bridge.ReactMarkerConstants.CREATE_UI_MANAGER_MODULE_CONSTANTS_END;
|
||||
import static com.facebook.react.bridge.ReactMarkerConstants.CREATE_UI_MANAGER_MODULE_CONSTANTS_START;
|
||||
import static com.facebook.react.bridge.ReactMarkerConstants.UI_MANAGER_MODULE_CONSTANTS_CONVERT_END;
|
||||
import static com.facebook.react.bridge.ReactMarkerConstants.UI_MANAGER_MODULE_CONSTANTS_CONVERT_START;
|
||||
|
||||
/**
|
||||
* <p>Native module to allow JS to create and update native Views.</p>
|
||||
@@ -77,7 +74,7 @@ import static com.facebook.react.bridge.ReactMarkerConstants.UI_MANAGER_MODULE_C
|
||||
*/
|
||||
@ReactModule(name = UIManagerModule.NAME)
|
||||
public class UIManagerModule extends ReactContextBaseJavaModule implements
|
||||
OnBatchCompleteListener, LifecycleEventListener, PerformanceCounter, NativeModuleLogger {
|
||||
OnBatchCompleteListener, LifecycleEventListener, PerformanceCounter {
|
||||
|
||||
protected static final String NAME = "UIManager";
|
||||
|
||||
@@ -596,16 +593,6 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
|
||||
return mUIImplementation.resolveRootTagFromReactTag(reactTag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void startConstantsMapConversion() {
|
||||
ReactMarker.logMarker(UI_MANAGER_MODULE_CONSTANTS_CONVERT_START);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void endConstantsMapConversion() {
|
||||
ReactMarker.logMarker(UI_MANAGER_MODULE_CONSTANTS_CONVERT_END);
|
||||
}
|
||||
|
||||
/**
|
||||
* Listener that drops the CSSNode pool on low memory when the app is backgrounded.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user