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:
Pieter De Baets authored and Facebook Github Bot 9 committed 2016-09-05 11:13:33 -07:00
1 parent 3f5a263307
commit 1a7c231ef3
11 files changed
+73 -95

No files matched your search

+4
View File
@@ -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;
}