mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 01:40:08 +00:00
Remove redundant profile events
Summary: public Remove some of the manual markers from the bridge since they will already be added dinamically. Reviewed By: jspahrsummers Differential Revision: D2761748 fb-gh-sync-id: 0c726373f9105258feb8230d30453559ed1e6a65
This commit is contained in:
parent
f5673026f4
commit
f8c125c64b
@ -908,8 +908,6 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithBundleURL:(__unused NSURL *)bundleUR
|
||||
return NO;
|
||||
}
|
||||
|
||||
RCT_PROFILE_BEGIN_EVENT(0, [NSString stringWithFormat:@"[%@ %@]", moduleData.name, method.JSMethodName], nil);
|
||||
|
||||
@try {
|
||||
[method invokeWithBridge:self module:moduleData.instance arguments:params];
|
||||
}
|
||||
@ -925,13 +923,6 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithBundleURL:(__unused NSURL *)bundleUR
|
||||
RCTFatal(RCTErrorWithMessage(message));
|
||||
}
|
||||
|
||||
if (RCTProfileIsProfiling()) {
|
||||
NSMutableDictionary *args = [method.profileArgs mutableCopy];
|
||||
args[@"method"] = method.JSMethodName;
|
||||
args[@"args"] = RCTJSONStringify(RCTNullIfNil(params), NULL);
|
||||
RCT_PROFILE_END_EVENT(0, @"objc_call", args);
|
||||
}
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
||||
@ -948,9 +939,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithBundleURL:(__unused NSURL *)bundleUR
|
||||
|
||||
[self dispatchBlock:^{
|
||||
RCTProfileEndFlowEvent();
|
||||
RCT_PROFILE_BEGIN_EVENT(0, [NSString stringWithFormat:@"[%@ didUpdateFrame:%f]", observer, displayLink.timestamp], nil);
|
||||
[observer didUpdateFrame:frameUpdate];
|
||||
RCT_PROFILE_END_EVENT(0, @"objc_call,fps", nil);
|
||||
} queue:moduleData.methodQueue];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user