Another fix

Reviewed By: benhiller

Differential Revision: D4185166

fbshipit-source-id: 940dbfbd65c94455979c7e88375784a5c68647a5
This commit is contained in:
Dan Caspi 2016-11-15 14:55:32 -08:00 committed by Facebook Github Bot
parent 1d99f0d91b
commit b123cc279e
1 changed files with 3 additions and 0 deletions

View File

@ -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);