File tree Expand file tree Collapse file tree
packages/react-native/React/CxxBridge Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454#import " RCTMessageThread.h"
5555#import " RCTObjcExecutor.h"
5656
57- #ifdef WITH_FBSYSTRACE
58- #import < React/RCTFBSystrace.h>
59- #endif
60-
6157#if RCT_DEV_MENU && __has_include(<React/RCTDevLoadingViewProtocol.h>)
6258#import < React/RCTDevLoadingViewProtocol.h>
6359#endif
@@ -1507,9 +1503,6 @@ - (void)startProfiling
15071503 RCTAssertMainQueue ();
15081504
15091505 [self ensureOnJavaScriptThread: ^{
1510- #if WITH_FBSYSTRACE
1511- [RCTFBSystrace registerCallbacks ];
1512- #endif
15131506 RCTProfileInit (self);
15141507
15151508 [self enqueueJSCall: @" Systrace" method: @" setEnabled" args: @[ @YES ] completion: NULL ];
@@ -1525,14 +1518,6 @@ - (void)stopProfiling:(void (^)(NSData *))callback
15251518 RCTProfileEnd (self, ^(NSString *log) {
15261519 NSData *logData = [log dataUsingEncoding: NSUTF8StringEncoding];
15271520 callback (logData);
1528- #if WITH_FBSYSTRACE
1529- if (![RCTFBSystrace verifyTraceSize: logData.length]) {
1530- RCTLogWarn (
1531- @" Your FBSystrace trace might be truncated, try to bump up the buffer size"
1532- " in RCTFBSystrace.m or capture a shorter trace" );
1533- }
1534- [RCTFBSystrace unregisterCallbacks ];
1535- #endif
15361521 });
15371522 }];
15381523}
You can’t perform that action at this time.
0 commit comments