diff --git a/Libraries/Core/InitializeCore.js b/Libraries/Core/InitializeCore.js index 4182099836..2dcede7fde 100644 --- a/Libraries/Core/InitializeCore.js +++ b/Libraries/Core/InitializeCore.js @@ -213,12 +213,12 @@ if (__DEV__) { } require('RCTDebugComponentOwnership'); - } -} -// Set up inspector -if (__DEV__) { - if (!global.__RCTProfileIsProfiling) { + // In order to use Cmd+P to record/dump perf data, we need to make sure + // this module is available in the bundle + require('RCTRenderingPerf'); + + // Set up inspector const JSInspector = require('JSInspector'); JSInspector.registerAgent(require('NetworkAgent')); } diff --git a/Libraries/ReactNative/AppRegistry.js b/Libraries/ReactNative/AppRegistry.js index 5b1eb88c7c..9bc22fc28f 100644 --- a/Libraries/ReactNative/AppRegistry.js +++ b/Libraries/ReactNative/AppRegistry.js @@ -21,12 +21,6 @@ const infoLog = require('infoLog'); const invariant = require('fbjs/lib/invariant'); const renderApplication = require('renderApplication'); -if (__DEV__) { - // In order to use Cmd+P to record/dump perf data, we need to make sure - // this module is available in the bundle - require('RCTRenderingPerf'); -} - type Task = (taskData: any) => Promise; type TaskProvider = () => Task; export type ComponentProvider = () => ReactClass;