mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
9f310a2b15
Summary: This diff instruments two markers: - JSRequireBeginning: From the start of the JS require to when we start creating the platform NativeModule - JSRequireEnding: From the end of platform NativeModule create to the end of the JS require In order to accomplish this, I had modify `ModuleRegistry::ModuleRegistry()` to accept a `std::shared_ptr<NativeModulePerfLogger>`. I also had to implement the public method `ModuleRegistry::getNativeModulePerfLogger()` so that `JSINativeModules` could start logging the JS require beginning and ending. Changelog: [Internal] Reviewed By: PeteTheHeat Differential Revision: D21418803 fbshipit-source-id: 53828817ae41f23f3f04a95b1d3ac0012735da48
23 lines
575 B
Makefile
23 lines
575 B
Makefile
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := jsireact
|
|
|
|
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/jsireact/*.cpp)
|
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)
|
|
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)
|
|
|
|
LOCAL_CFLAGS := -fexceptions -frtti -O3
|
|
|
|
LOCAL_STATIC_LIBRARIES := libjsi reactnative perflogger
|
|
LOCAL_SHARED_LIBRARIES := libfolly_json glog
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|