#6 Notify SamplingProfiler of the main MachineThread

Reviewed By: bnham

Differential Revision: D3503444

fbshipit-source-id: a2e9a692cd5badac5a15416844c8497f88021a5e
This commit is contained in:
Lukas Piatkowski
2016-07-15 11:51:10 -07:00
committed by Facebook Github Bot
parent 4843a90c1c
commit edb9fce9c3
4 changed files with 41 additions and 0 deletions

View File

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