// Copyright 2004-present Facebook. All Rights Reserved. #ifdef WITH_JSC_EXTRA_TRACING #include "JSCSamplingProfiler.h" #include #include #include #include #include namespace facebook { namespace react { namespace { static JSValueRef pokeSamplingProfiler( JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) { return JSPokeSamplingProfiler(ctx); } } void initSamplingProfilerOnMainJSCThread(JSGlobalContextRef ctx) { JSStartSamplingProfilingOnMainJSCThread(ctx); installGlobalFunction(ctx, "pokeSamplingProfiler", pokeSamplingProfiler); } } } #endif // WITH_JSC_EXTRA_TRACING