Skip to content

Commit

Permalink
Disable RCTPerfMonitor on new bridge
Browse files Browse the repository at this point in the history
Reviewed By: mhorowitz

Differential Revision: D4446988

fbshipit-source-id: f36360b1ea049e64e2a6a9bffce0af8d0ab6839a
  • Loading branch information
javache authored and facebook-github-bot committed Jan 23, 2017
1 parent 4aac5cd commit 9681583
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion React/Profiler/RCTPerfMonitor.m
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#import "RCTPerformanceLogger.h" #import "RCTPerformanceLogger.h"
#import "RCTRootView.h" #import "RCTRootView.h"
#import "RCTUIManager.h" #import "RCTUIManager.h"
#import "RCTBridge+Private.h"


static NSString *const RCTPerfMonitorKey = @"RCTPerfMonitorKey"; static NSString *const RCTPerfMonitorKey = @"RCTPerfMonitorKey";
static NSString *const RCTPerfMonitorCellIdentifier = @"RCTPerfMonitorCellIdentifier"; static NSString *const RCTPerfMonitorCellIdentifier = @"RCTPerfMonitorCellIdentifier";
Expand Down Expand Up @@ -141,7 +142,10 @@ - (void)setBridge:(RCTBridge *)bridge
{ {
_bridge = bridge; _bridge = bridge;


[_bridge.devMenu addItem:self.devMenuItem]; // TODO: enable on cxx bridge
if ([_bridge isKindOfClass:[RCTBatchedBridge class]]) {
[_bridge.devMenu addItem:self.devMenuItem];
}
} }


- (void)invalidate - (void)invalidate
Expand Down

0 comments on commit 9681583

Please sign in to comment.