mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-21 00:18:01 +08:00
#6 Notify SamplingProfiler of the main MachineThread
Reviewed By: bnham Differential Revision: D3503444 fbshipit-source-id: a2e9a692cd5badac5a15416844c8497f88021a5e
This commit is contained in:
committed by
Facebook Github Bot
parent
4843a90c1c
commit
edb9fce9c3
@@ -20,6 +20,8 @@
|
||||
#include "SystraceSection.h"
|
||||
#include "Value.h"
|
||||
|
||||
#include "JSCSamplingProfiler.h"
|
||||
|
||||
#if defined(WITH_JSC_EXTRA_TRACING) || DEBUG
|
||||
#include "JSCTracing.h"
|
||||
#endif
|
||||
@@ -223,6 +225,8 @@ void JSCExecutor::initOnJSVMThread() throw(JSException) {
|
||||
addNativeProfilingHooks(m_context);
|
||||
addNativeTracingLegacyHooks(m_context);
|
||||
PerfLogging::installNativeHooks(m_context);
|
||||
|
||||
initSamplingProfilerOnMainJSCThread(m_context);
|
||||
#endif
|
||||
|
||||
#ifdef WITH_FB_MEMORY_PROFILING
|
||||
|
||||
Reference in New Issue
Block a user