react-native/ReactCommon/cxxreact/JSCSamplingProfiler.cpp
Lukas Piatkowski edb9fce9c3 #6 Notify SamplingProfiler of the main MachineThread
Reviewed By: bnham

Differential Revision: D3503444

fbshipit-source-id: a2e9a692cd5badac5a15416844c8497f88021a5e
2016-07-15 11:58:31 -07:00

20 lines
370 B
C++

// Copyright 2004-present Facebook. All Rights Reserved.
#ifdef WITH_JSC_EXTRA_TRACING
#include "JSCSamplingProfiler.h"
#include <JavaScriptCore/API/JSProfilerPrivate.h>
namespace facebook {
namespace react {
void initSamplingProfilerOnMainJSCThread(JSGlobalContextRef ctx) {
JSStartSamplingProfilingOnMainJSCThread(ctx);
}
}
}
#endif // WITH_JSC_EXTRA_TRACING