From b123cc279e8dcf4172d076ebb4c52d282577bfd7 Mon Sep 17 00:00:00 2001 From: Dan Caspi Date: Tue, 15 Nov 2016 14:55:32 -0800 Subject: [PATCH] Another fix Reviewed By: benhiller Differential Revision: D4185166 fbshipit-source-id: 940dbfbd65c94455979c7e88375784a5c68647a5 --- React/Executors/RCTJSCExecutor.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/React/Executors/RCTJSCExecutor.mm b/React/Executors/RCTJSCExecutor.mm index 94b3bc586..dce385e4e 100644 --- a/React/Executors/RCTJSCExecutor.mm +++ b/React/Executors/RCTJSCExecutor.mm @@ -419,6 +419,8 @@ static NSThread *newJavaScriptThread(void) } }; +#ifdef RCT_DEV + // Add toggles for JSC's sampling profiler, if the profiler is enabled if (self->_jscWrapper->JSSamplingProfilerEnabled()) { // Mark this thread as the main JS thread before starting profiling. @@ -449,6 +451,7 @@ static NSThread *newJavaScriptThread(void) }; } #endif +#endif #if RCT_DEV RCTInstallJSCProfiler(self->_bridge, context.JSGlobalContextRef);