// Copyright 2004-present Facebook. All Rights Reserved. #pragma once #include #include #include #include #include #include #ifndef RN_EXPORT #define RN_EXPORT __attribute__((visibility("default"))) #endif namespace facebook { namespace react { namespace ReactMarker { enum ReactMarkerId { NATIVE_REQUIRE_START, NATIVE_REQUIRE_STOP, RUN_JS_BUNDLE_START, RUN_JS_BUNDLE_STOP, CREATE_REACT_CONTEXT_STOP, JS_BUNDLE_STRING_CONVERT_START, JS_BUNDLE_STRING_CONVERT_STOP, NATIVE_MODULE_SETUP_START, NATIVE_MODULE_SETUP_STOP, }; using LogTaggedMarker = std::function; extern RN_EXPORT LogTaggedMarker logTaggedMarker; extern void logMarker(const ReactMarkerId markerId); } namespace JSCNativeHooks { using Hook = JSValueRef(*)( JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception); extern RN_EXPORT Hook loggingHook; extern RN_EXPORT Hook nowHook; using ConfigurationHook = std::function; extern RN_EXPORT ConfigurationHook installPerfHooks; } } }