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:
Tadeu Zagallo
2015-11-09 08:42:51 -08:00
committed by facebook-github-bot-6
parent fdbc1e03de
commit e5b843834d
5 changed files with 25 additions and 22 deletions

View File

@@ -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)