mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 13:44:04 +00:00
Log time to prepare native config
Reviewed By: @jspahrsummers Differential Revision: D2517033 fb-gh-sync-id: fd560304f163b0ab9be592024e2a9b793fb990bc
This commit is contained in:
parent
6ca8f4836d
commit
e3e9be9efb
@ -148,7 +148,9 @@ RCT_EXTERN NSArray *RCTGetModuleClasses(void);
|
||||
|
||||
dispatch_group_async(setupJSExecutorAndModuleConfig, bridgeQueue, ^{
|
||||
if (weakSelf.isValid) {
|
||||
RCTPerformanceLoggerStart(RCTPLNativeModulePrepareConfig);
|
||||
config = [weakSelf moduleConfig];
|
||||
RCTPerformanceLoggerEnd(RCTPLNativeModulePrepareConfig);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -15,6 +15,7 @@ typedef NS_ENUM(NSUInteger, RCTPLTag) {
|
||||
RCTPLScriptDownload = 0,
|
||||
RCTPLScriptExecution,
|
||||
RCTPLNativeModuleInit,
|
||||
RCTPLNativeModulePrepareConfig,
|
||||
RCTPLNativeModuleInjectConfig,
|
||||
RCTPLTTI,
|
||||
RCTPLSize
|
||||
|
@ -33,6 +33,8 @@ NSArray *RCTPerformanceLoggerOutput(void)
|
||||
@(RCTPLData[RCTPLScriptExecution][1]),
|
||||
@(RCTPLData[RCTPLNativeModuleInit][0]),
|
||||
@(RCTPLData[RCTPLNativeModuleInit][1]),
|
||||
@(RCTPLData[RCTPLNativeModulePrepareConfig][0]),
|
||||
@(RCTPLData[RCTPLNativeModulePrepareConfig][1]),
|
||||
@(RCTPLData[RCTPLNativeModuleInjectConfig][0]),
|
||||
@(RCTPLData[RCTPLNativeModuleInjectConfig][1]),
|
||||
@(RCTPLData[RCTPLTTI][0]),
|
||||
@ -76,6 +78,7 @@ RCT_EXPORT_MODULE()
|
||||
@"ScriptDownload",
|
||||
@"ScriptExecution",
|
||||
@"NativeModuleInit",
|
||||
@"NativeModulePrepareConfig",
|
||||
@"NativeModuleInjectConfig",
|
||||
@"TTI",
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user