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;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
RCT_PROFILE_BEGIN_EVENT(0, [NSString stringWithFormat:@"[%@ %@]", moduleData.name, method.JSMethodName], nil);
|
|
||||||
|
|
||||||
@try {
|
@try {
|
||||||
[method invokeWithBridge:self module:moduleData.instance arguments:params];
|
[method invokeWithBridge:self module:moduleData.instance arguments:params];
|
||||||
}
|
}
|
||||||
|
@ -925,13 +923,6 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithBundleURL:(__unused NSURL *)bundleUR
|
||||||
RCTFatal(RCTErrorWithMessage(message));
|
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;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -948,9 +939,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithBundleURL:(__unused NSURL *)bundleUR
|
||||||
|
|
||||||
[self dispatchBlock:^{
|
[self dispatchBlock:^{
|
||||||
RCTProfileEndFlowEvent();
|
RCTProfileEndFlowEvent();
|
||||||
RCT_PROFILE_BEGIN_EVENT(0, [NSString stringWithFormat:@"[%@ didUpdateFrame:%f]", observer, displayLink.timestamp], nil);
|
|
||||||
[observer didUpdateFrame:frameUpdate];
|
[observer didUpdateFrame:frameUpdate];
|
||||||
RCT_PROFILE_END_EVENT(0, @"objc_call,fps", nil);
|
|
||||||
} queue:moduleData.methodQueue];
|
} queue:moduleData.methodQueue];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue