Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/react-native/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,6 @@ let reactCore = RNTarget(
path: "React",
searchPaths: [
"React/I18n",
"React/Profiler",
"ReactCommon/react/runtime/platform/ios", // explicit header search path to break circular dependency. RCTHost imports `RCTDefines.h` in ReactCore, ReacCore needs to import RCTHost
],
linkedFrameworks: ["CoreServices"],
Expand Down
1 change: 0 additions & 1 deletion packages/react-native/React/Base/RCTBridge.mm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#import "RCTModuleData.h"
#import "RCTPausedInDebuggerOverlayController.h"
#import "RCTPerformanceLogger.h"
#import "RCTProfile.h"
#import "RCTReloadCommand.h"
#import "RCTUtils.h"

Expand Down
7 changes: 0 additions & 7 deletions packages/react-native/React/Base/RCTDisplayLink.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

#import "RCTAssert.h"
#import "RCTFrameUpdate.h"
#import "RCTProfile.h"

#define RCTAssertRunLoop() \
RCTAssert(_runLoop == [NSRunLoop currentRunLoop], @"This method must be called on the CADisplayLink run loop")
Expand Down Expand Up @@ -81,8 +80,6 @@ - (void)_jsThreadUpdate:(CADisplayLink *)displayLink
{
RCTAssertRunLoop();

RCT_PROFILE_BEGIN_EVENT(RCTProfileTagAlways, @"-[RCTDisplayLink _jsThreadUpdate:]", nil);

// This always runs on the JS thread run loop, which is the queue the frame
// update observer expects its callbacks on, so dispatch inline.
RCTFrameUpdate *frameUpdate = [[RCTFrameUpdate alloc] initWithDisplayLink:displayLink];
Expand All @@ -91,10 +88,6 @@ - (void)_jsThreadUpdate:(CADisplayLink *)displayLink
}

[self updateJSDisplayLinkState];

RCTProfileImmediateEvent(RCTProfileTagAlways, @"JS Thread Tick", displayLink.timestamp, 'g');

RCT_PROFILE_END_EVENT(RCTProfileTagAlways, @"objc_call");
}

- (void)updateJSDisplayLinkState
Expand Down
6 changes: 0 additions & 6 deletions packages/react-native/React/Base/RCTModuleMethod.mm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#import "RCTLog.h"
#import "RCTManagedPointer.h"
#import "RCTParserUtils.h"
#import "RCTProfile.h"
#import "RCTUtils.h"

typedef BOOL (^RCTArgumentBlock)(RCTBridge *, NSUInteger, id);
Expand Down Expand Up @@ -471,12 +470,7 @@ - (void)processMethodSignature
- (SEL)selector
{
if (_selector == NULL) {
RCT_PROFILE_BEGIN_EVENT(
RCTProfileTagAlways,
@"",
(@{@"module" : NSStringFromClass(_moduleClass), @"method" : @(_methodInfo->objcName)}));
[self processMethodSignature];
RCT_PROFILE_END_EVENT(RCTProfileTagAlways, @"");
}

return _selector;
Expand Down
14 changes: 0 additions & 14 deletions packages/react-native/React/Base/RCTPerformanceLogger.mm
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@
#import "RCTLog.h"
#import "RCTPerformanceLogger.h"
#import "RCTPerformanceLoggerLabels.h"
#import "RCTProfile.h"
#import "RCTRootView.h"

using namespace facebook::react;

@interface RCTPerformanceLogger () {
int64_t _data[RCTPLSize][2];
NSInteger _cookies[RCTPLSize];
}

@end
Expand All @@ -46,12 +44,6 @@ @implementation RCTPerformanceLogger

- (void)markStartForTag:(RCTPLTag)tag
{
#if RCT_PROFILE
if (RCTProfileIsProfiling()) {
NSString *label = RCTPLLabelForTag(tag);
_cookies[tag] = RCTProfileBeginAsyncEvent(RCTProfileTagAlways, label, nil);
}
#endif
const NSTimeInterval currentTime = CACurrentMediaTime() * 1000;
_data[tag][0] = currentTime;
_data[tag][1] = 0;
Expand All @@ -65,12 +57,6 @@ - (void)markStartForTag:(RCTPLTag)tag

- (void)markStopForTag:(RCTPLTag)tag
{
#if RCT_PROFILE
if (RCTProfileIsProfiling()) {
NSString *label = RCTPLLabelForTag(tag);
RCTProfileEndAsyncEvent(RCTProfileTagAlways, @"native", _cookies[tag], label, @"RCTPerformanceLogger");
}
#endif
const NSTimeInterval currentTime = CACurrentMediaTime() * 1000;
if (_data[tag][0] != 0 && _data[tag][1] == 0) {
_data[tag][1] = currentTime;
Expand Down
1 change: 0 additions & 1 deletion packages/react-native/React/Base/RCTRootView.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#import "RCTKeyCommands.h"
#import "RCTLog.h"
#import "RCTPerformanceLogger.h"
#import "RCTProfile.h"
#import "RCTTouchHandler.h"
#import "RCTUIManager.h"
#import "RCTUIManagerUtils.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#import "RCTBridge.h"
#import "RCTLog.h"
#import "RCTPerformanceLogger.h"
#import "RCTProfile.h"
#import "RCTRootViewDelegate.h"
#import "RCTSurface.h"
#import "UIView+React.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#import <React/RCTBridge+Private.h>
#import <React/RCTBridge.h>
#import <React/RCTComponentEvent.h>
#import <React/RCTProfile.h>
#import <React/RCTUtils.h>
#import <ReactCommon/RCTTurboModule.h>

Expand Down
1 change: 0 additions & 1 deletion packages/react-native/React/Modules/RCTUIManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#import "RCTLog.h"
#import "RCTModuleData.h"
#import "RCTModuleMethod.h"
#import "RCTProfile.h"
#import "RCTScrollableProtocol.h"
#import "RCTShadowView.h"
#import "RCTSurfaceRootShadowView.h"
Expand Down
16 changes: 0 additions & 16 deletions packages/react-native/React/Profiler/RCTMacros.h

This file was deleted.

Loading
Loading