parent
9dd956a84b
commit
e08a507f75
|
@ -156,9 +156,8 @@ RCT_EXTERN NSArray *RCTGetModuleClasses(void);
|
|||
// We're not waiting for this complete to leave the dispatch group, since
|
||||
// injectJSONConfiguration and executeSourceCode will schedule operations on the
|
||||
// same queue anyway.
|
||||
RCTPerformanceLoggerStart(RCTPLNativeModuleInjectConfig);
|
||||
[weakSelf injectJSONConfiguration:config onComplete:^(NSError *error) {
|
||||
RCTPerformanceLoggerEnd(RCTPLNativeModuleInjectConfig);
|
||||
RCTPerformanceLoggerEnd(RCTPLNativeModuleInit);
|
||||
if (error) {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[weakSelf stopLoadingWithError:error];
|
||||
|
@ -296,7 +295,6 @@ RCT_EXTERN NSArray *RCTGetModuleClasses(void);
|
|||
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:RCTDidCreateNativeModules
|
||||
object:self];
|
||||
RCTPerformanceLoggerEnd(RCTPLNativeModuleInit);
|
||||
}
|
||||
|
||||
- (void)setupExecutor
|
||||
|
|
|
@ -15,7 +15,6 @@ typedef NS_ENUM(NSUInteger, RCTPLTag) {
|
|||
RCTPLScriptDownload = 0,
|
||||
RCTPLScriptExecution,
|
||||
RCTPLNativeModuleInit,
|
||||
RCTPLNativeModuleInjectConfig,
|
||||
RCTPLTTI,
|
||||
RCTPLSize
|
||||
};
|
||||
|
|
|
@ -33,8 +33,6 @@ NSArray *RCTPerformanceLoggerOutput(void)
|
|||
@(RCTPLData[RCTPLScriptExecution][1]),
|
||||
@(RCTPLData[RCTPLNativeModuleInit][0]),
|
||||
@(RCTPLData[RCTPLNativeModuleInit][1]),
|
||||
@(RCTPLData[RCTPLNativeModuleInjectConfig][0]),
|
||||
@(RCTPLData[RCTPLNativeModuleInjectConfig][1]),
|
||||
@(RCTPLData[RCTPLTTI][0]),
|
||||
@(RCTPLData[RCTPLTTI][1]),
|
||||
];
|
||||
|
@ -76,7 +74,6 @@ RCT_EXPORT_MODULE()
|
|||
@"ScriptDownload",
|
||||
@"ScriptExecution",
|
||||
@"NativeModuleInit",
|
||||
@"NativeModuleInjectConfig",
|
||||
@"TTI",
|
||||
],
|
||||
]];
|
||||
|
|
Loading…
Reference in New Issue