react-native-macos/ReactCommon
Ramanpreet Nara bf0e516086 Instrument async method call batch preprocessing
Summary:
NativeModule async method calls are queued up on the JS side, and flushed to C++ on every Native -> JS call. Before we execute the batch of async NativeModule method calls, we convert it (a JS object) from a `jsi::Value` to a `folly::dynamic` object in `JSIExecutor::callNativeModules`. Then, in `JsToNativeBridge::callNativeModules`, we convert this `folly::dynamic` object into an `std::vector<MethodCall>`, before finally looping over these `MethodCall`s and invoking each NativeModule async method call.

The markers I'm adding in this diff measure this `jsi::Value -> folly::dynamic -> std::vector<MethodCall>` pre-processing.

Changelog: [Internal]

Reviewed By: PeteTheHeat

Differential Revision: D21435455

fbshipit-source-id: 4c5a9e2b73c1a2a49d7a8f224a0d30afe3a0c79c
2020-05-13 20:28:17 -07:00
..
better label react-native-github targets 2020-05-08 00:36:17 -07:00
callinvoker label react-native-github targets 2020-05-08 00:36:17 -07:00
config label react-native-github targets 2020-05-08 00:36:17 -07:00
cxxreact Instrument async method call batch preprocessing 2020-05-13 20:28:17 -07:00
fabric Fabric: Unifying interface of stub TextLayoutManager with actual ones 2020-05-13 16:42:18 -07:00
hermes When debugger is attached continue to receive console messages 2020-05-13 07:20:20 -07:00
jsengineinstance The life-changing magic of clang-tidying up 2020-02-04 11:09:30 -08:00
jsi xplat code ownership 2020-05-11 10:24:35 -07:00
jsiexecutor Instrument async method call batch preprocessing 2020-05-13 20:28:17 -07:00
jsinspector label react-native-github targets 2020-05-08 00:36:17 -07:00
microprofiler label react-native-github targets 2020-05-08 00:36:17 -07:00
perflogger Introduce NativeModulePerfLogger 2020-05-13 20:28:15 -07:00
runtimeexecutor Fixing typo in comment (#28882) 2020-05-12 13:22:58 -07:00
turbomodule Switch TurboModules over to NativeModulePerfLogger 2020-05-13 20:28:16 -07:00
utils label react-native-github targets 2020-05-08 00:36:17 -07:00
yoga Fix rounding error using double instead of float 2020-04-27 14:41:52 -07:00
React-Fabric.podspec Fix Cocoapods builds 2020-04-07 19:07:19 -07:00
ReactCommon.podspec Introduce NativeModulePerfLogger 2020-05-13 20:28:15 -07:00
common.mk More robust hermes-engine lookup logic in makefiles (#26820) 2019-10-14 19:21:43 -07:00