mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Another fix
Reviewed By: benhiller Differential Revision: D4185166 fbshipit-source-id: 940dbfbd65c94455979c7e88375784a5c68647a5
This commit is contained in:
committed by
Facebook Github Bot
parent
1d99f0d91b
commit
b123cc279e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user