mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Clean up unnecessary profile events
Summary: public There were some old markers that are now automatically inject and now are no longer necessary (+ one that was missing an end call :( )) Reviewed By: javache Differential Revision: D2625901 fb-gh-sync-id: 4c4c9d6b4e8e2b4bdb9c64fde01000b0ca2e9f47
This commit is contained in:
committed by
facebook-github-bot-4
parent
c1ae4780ce
commit
de1c0169fc
@@ -627,7 +627,6 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithBundleURL:(__unused NSURL *)bundleUR
|
||||
__weak RCTBatchedBridge *weakSelf = self;
|
||||
[_javaScriptExecutor executeBlockOnJavaScriptQueue:^{
|
||||
RCTProfileEndFlowEvent();
|
||||
RCTProfileBeginEvent(0, @"enqueue_call", nil);
|
||||
|
||||
RCTBatchedBridge *strongSelf = weakSelf;
|
||||
if (!strongSelf || !strongSelf.valid) {
|
||||
@@ -731,7 +730,8 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithBundleURL:(__unused NSURL *)bundleUR
|
||||
|
||||
dispatch_block_t block = ^{
|
||||
RCTProfileEndFlowEvent();
|
||||
RCTProfileBeginEvent(0, RCTCurrentThreadName(), nil);
|
||||
NSString *threadName = RCTCurrentThreadName();
|
||||
RCTProfileBeginEvent(0, threadName, nil);
|
||||
|
||||
NSOrderedSet *calls = [buckets objectForKey:queue];
|
||||
@autoreleasepool {
|
||||
|
||||
Reference in New Issue
Block a user