Log RCTPLTTI for Warm Start
Reviewed By: javache Differential Revision: D4962773 fbshipit-source-id: d01f8fe0d4e2f1e7453df03f9a15482f2f065a13
This commit is contained in:
parent
989eb985b3
commit
1c07658a1e
|
@ -19,13 +19,14 @@
|
|||
#import "RCTEventDispatcher.h"
|
||||
#import "RCTKeyCommands.h"
|
||||
#import "RCTLog.h"
|
||||
#import "RCTPerformanceLogger.h"
|
||||
#import "RCTProfile.h"
|
||||
#import "RCTRootContentView.h"
|
||||
#import "RCTTouchHandler.h"
|
||||
#import "RCTUIManager.h"
|
||||
#import "RCTUtils.h"
|
||||
#import "RCTView.h"
|
||||
#import "RCTRootContentView.h"
|
||||
#import "UIView+React.h"
|
||||
#import "RCTProfile.h"
|
||||
|
||||
#if TARGET_OS_TV
|
||||
#import "RCTTVRemoteHandler.h"
|
||||
|
@ -59,6 +60,9 @@ NSString *const RCTContentDidAppearNotification = @"RCTContentDidAppearNotificat
|
|||
RCTAssert(moduleName, @"A moduleName is required to create an RCTRootView");
|
||||
|
||||
RCT_PROFILE_BEGIN_EVENT(RCTProfileTagAlways, @"-[RCTRootView init]", nil);
|
||||
if (!bridge.isLoading) {
|
||||
[bridge.performanceLogger markStartForTag:RCTPLTTI];
|
||||
}
|
||||
|
||||
if (self = [super initWithFrame:CGRectZero]) {
|
||||
self.backgroundColor = [UIColor whiteColor];
|
||||
|
|
|
@ -498,10 +498,12 @@ RCT_EXPORT_MODULE()
|
|||
|
||||
- (void)tap
|
||||
{
|
||||
[self loadPerformanceLoggerData];
|
||||
if (CGRectIsEmpty(_storedMonitorFrame)) {
|
||||
_storedMonitorFrame = CGRectMake(0, 20, self.container.window.frame.size.width, RCTPerfMonitorExpandHeight);
|
||||
[self.container addSubview:self.metrics];
|
||||
[self loadPerformanceLoggerData];
|
||||
} else {
|
||||
[_metrics reloadData];
|
||||
}
|
||||
|
||||
[UIView animateWithDuration:.25 animations:^{
|
||||
|
|
Loading…
Reference in New Issue