mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-18 04:13:51 +08:00
Remove last arg from RCTProfileEnd, make macro's function-like
Reviewed By: tadeuzagallo Differential Revision: D3801302 fbshipit-source-id: 297a58db876366e21e232094c1361aa0dcd9016d
This commit is contained in:
committed by
Facebook Github Bot 9
parent
3f5a263307
commit
1a7c231ef3
@@ -18,6 +18,7 @@
|
||||
#import "RCTLog.h"
|
||||
#import "RCTParserUtils.h"
|
||||
#import "RCTUtils.h"
|
||||
#import "RCTProfile.h"
|
||||
|
||||
typedef BOOL (^RCTArgumentBlock)(RCTBridge *, NSUInteger, id);
|
||||
|
||||
@@ -399,7 +400,10 @@ SEL RCTParseMethodSignature(NSString *methodSignature, NSArray<RCTMethodArgument
|
||||
- (SEL)selector
|
||||
{
|
||||
if (_selector == NULL) {
|
||||
RCT_PROFILE_BEGIN_EVENT(RCTProfileTagAlways, @"", (@{ @"module": NSStringFromClass(_moduleClass),
|
||||
@"method": _methodSignature }));
|
||||
[self processMethodSignature];
|
||||
RCT_PROFILE_END_EVENT(RCTProfileTagAlways, @"");
|
||||
}
|
||||
return _selector;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user