From 523a103108d7ae7073653233a35ed678bf844848 Mon Sep 17 00:00:00 2001 From: Alexey Lang Date: Fri, 19 May 2017 02:43:40 -0700 Subject: [PATCH] Make Systrace less noisy in Java Reviewed By: AaaChiuuu Differential Revision: D5087152 fbshipit-source-id: 5aa911e834be2ee0d8c5c53ec71e617d02da564f --- .../src/main/java/com/facebook/react/ReactInstanceManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java b/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java index 6044151e5..27d105b08 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java @@ -315,7 +315,8 @@ public class ReactInstanceManager { private void recreateReactContextInBackgroundInner() { UiThreadUtil.assertOnUiThread(); - if (mUseDeveloperSupport && mJSMainModuleName != null) { + if (mUseDeveloperSupport && mJSMainModuleName != null && + !Systrace.isTracing(TRACE_TAG_REACT_APPS | TRACE_TAG_REACT_JSC_CALLS)) { final DeveloperSettings devSettings = mDevSupportManager.getDevSettings(); // If remote JS debugging is enabled, load from dev server.