Add a bunch more systrace logging

Reviewed By: tadeuzagallo

Differential Revision: D3234831

fbshipit-source-id: 177f9b987e938c59d50fc07bce01fb5c912652e7
This commit is contained in:
Marc Horowitz
2016-05-13 17:15:05 -07:00
committed by Facebook Github Bot 8
parent 86f2eb18e5
commit 267264f1ec
3 changed files with 21 additions and 1 deletions

View File

@@ -272,6 +272,7 @@ RCT_EXPORT_MODULE()
_pendingUIBlocks = nil;
dispatch_async(dispatch_get_main_queue(), ^{
RCT_PROFILE_BEGIN_EVENT(RCTProfileTagAlways, @"UIManager invalidate", nil);
for (NSNumber *rootViewTag in _rootViewTags) {
[(id<RCTInvalidating>)_viewRegistry[rootViewTag] invalidate];
}
@@ -283,6 +284,7 @@ RCT_EXPORT_MODULE()
_bridge = nil;
[[NSNotificationCenter defaultCenter] removeObserver:self];
RCT_PROFILE_END_EVENT(RCTProfileTagAlways, @"", nil);
});
}