Skip to content

Commit e8988e9

Browse files
javachemeta-codesync[bot]
authored andcommitted
Remove RCTFBSystrace (#54097)
Summary: Pull Request resolved: #54097 Changelog: [Internal] Reviewed By: christophpurrer Differential Revision: D84196086 fbshipit-source-id: b178b541224c6376bf78dc19fc9051bca4c46023
1 parent 7787d2f commit e8988e9

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

packages/react-native/React/CxxBridge/RCTCxxBridge.mm

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@
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
}

0 commit comments

Comments
 (0)