|
29 | 29 | import static com.facebook.react.bridge.ReactMarkerConstants.SETUP_REACT_CONTEXT_START;
|
30 | 30 | import static com.facebook.systrace.Systrace.TRACE_TAG_REACT_APPS;
|
31 | 31 | import static com.facebook.systrace.Systrace.TRACE_TAG_REACT_JAVA_BRIDGE;
|
32 |
| -import static com.facebook.systrace.Systrace.TRACE_TAG_REACT_JSC_CALLS; |
| 32 | +import static com.facebook.systrace.Systrace.TRACE_TAG_REACT_JS_VM_CALLS; |
33 | 33 |
|
34 | 34 | import android.app.Activity;
|
35 | 35 | import android.content.Context;
|
@@ -395,8 +395,9 @@ private void recreateReactContextInBackgroundInner() {
|
395 | 395 | .logMessage(ReactDebugOverlayTags.RN_CORE, "RNCore: recreateReactContextInBackground");
|
396 | 396 | UiThreadUtil.assertOnUiThread();
|
397 | 397 |
|
398 |
| - if (mUseDeveloperSupport && mJSMainModulePath != null && |
399 |
| - !Systrace.isTracing(TRACE_TAG_REACT_APPS | TRACE_TAG_REACT_JSC_CALLS)) { |
| 398 | + if (mUseDeveloperSupport |
| 399 | + && mJSMainModulePath != null |
| 400 | + && !Systrace.isTracing(TRACE_TAG_REACT_APPS | TRACE_TAG_REACT_JS_VM_CALLS)) { |
400 | 401 | final DeveloperSettings devSettings = mDevSupportManager.getDevSettings();
|
401 | 402 |
|
402 | 403 | // If remote JS debugging is enabled, load from dev server.
|
@@ -1094,7 +1095,7 @@ private ReactApplicationContext createReactContext(
|
1094 | 1095 | if (mBridgeIdleDebugListener != null) {
|
1095 | 1096 | catalystInstance.addBridgeIdleDebugListener(mBridgeIdleDebugListener);
|
1096 | 1097 | }
|
1097 |
| - if (Systrace.isTracing(TRACE_TAG_REACT_APPS | TRACE_TAG_REACT_JSC_CALLS)) { |
| 1098 | + if (Systrace.isTracing(TRACE_TAG_REACT_APPS | TRACE_TAG_REACT_JS_VM_CALLS)) { |
1098 | 1099 | catalystInstance.setGlobalVariable("__RCTProfileIsProfiling", "true");
|
1099 | 1100 | }
|
1100 | 1101 | ReactMarker.logMarker(ReactMarkerConstants.PRE_RUN_JS_BUNDLE_START);
|
|
0 commit comments