mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 12:45:37 +08:00
Rename RCTProfile(Begin|End)Event
Summary: public Rename it to `RCT_PROFILE_(BEGIN|END)_EVENT` to make it clearer that it's a macro, since it has special behaviours. Reviewed By: jspahrsummers Differential Revision: D2631542 fb-gh-sync-id: 629c139462c4aa3582f719b14482017d13676e33
This commit is contained in:
committed by
facebook-github-bot-6
parent
fdbc1e03de
commit
e5b843834d
@@ -190,13 +190,13 @@ RCT_EXTERN void RCTProfileTrampolineStart(id, SEL);
|
||||
void RCTProfileTrampolineStart(id self, SEL cmd)
|
||||
{
|
||||
NSString *name = [NSString stringWithFormat:@"-[%s %s]", class_getName([self class]), sel_getName(cmd)];
|
||||
RCTProfileBeginEvent(0, name, nil);
|
||||
RCT_PROFILE_BEGIN_EVENT(0, name, nil);
|
||||
}
|
||||
|
||||
RCT_EXTERN void RCTProfileTrampolineEnd(void);
|
||||
void RCTProfileTrampolineEnd(void)
|
||||
{
|
||||
RCTProfileEndEvent(0, @"objc_call,modules,auto", nil);
|
||||
RCT_PROFILE_END_EVENT(0, @"objc_call,modules,auto", nil);
|
||||
}
|
||||
|
||||
void RCTProfileHookModules(RCTBridge *bridge)
|
||||
|
||||
Reference in New Issue
Block a user