Skip to content

Commit 2172ba1

Browse files
authored
Merge fa4025a into 9cab16b
2 parents 9cab16b + fa4025a commit 2172ba1

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
- Skips ignoring require cycle logs for RN 0.70 or newer ([#4214](https://github.com/getsentry/sentry-react-native/pull/4214))
1414
- Enhanced accuracy of time-to-display spans. ([#4189](https://github.com/getsentry/sentry-react-native/pull/4189))
15+
- Speed up getBinaryImages for finishing transactions and capturing events ([#4194](https://github.com/getsentry/sentry-react-native/pull/4194))
1516

1617
### Features
1718

packages/core/RNSentryCocoaTester/RNSentryCocoaTesterTests/RNSentryTests.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ - (void)prepareNativeFrameMocksWithLocalSymbolication: (BOOL) debug
295295
OCMStub([sentryDebugImageMock serialize]).andReturn(serializedDebugImage);
296296

297297
id sentryDebugImageProviderMock = OCMClassMock([SentryDebugImageProvider class]);
298-
OCMStub([sentryDebugImageProviderMock getDebugImagesForAddresses:[NSSet setWithObject:@"0x000000000001b669"] isCrash:false]).andReturn(@[sentryDebugImageMock]);
298+
OCMStub([sentryDebugImageProviderMock getDebugImagesForImageAddressesFromCache:[NSSet setWithObject:@"0x000000000001b669"]]).andReturn(@[sentryDebugImageMock]);
299299

300300
OCMStub([sentryDependencyContainerMock debugImageProvider]).andReturn(sentryDebugImageProviderMock);
301301
}

packages/core/ios/RNSentry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
typedef int (*SymbolicateCallbackType)(const void *, Dl_info *);
1515

1616
@interface SentryDebugImageProvider ()
17-
- (NSArray<SentryDebugMeta *> * _Nonnull)getDebugImagesForAddresses:(NSSet<NSString *> * _Nonnull)addresses isCrash:(BOOL)isCrash;
17+
- (NSArray<SentryDebugMeta *> * _Nonnull)getDebugImagesForImageAddressesFromCache:(NSSet<NSString *> * _Nonnull)addresses;
1818
@end
1919

2020
@interface

packages/core/ios/RNSentry.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ - (NSDictionary*) fetchNativeStackFramesBy: (NSArray<NSNumber*>*)instructionsAdd
340340
} else {
341341
NSMutableArray<NSDictionary<NSString *, id> *> * _Nonnull serializedDebugMetaImages = [[NSMutableArray alloc] init];
342342

343-
NSArray<SentryDebugMeta *> *debugMetaImages = [[[SentryDependencyContainer sharedInstance] debugImageProvider] getDebugImagesForAddresses:imagesAddrToRetrieveDebugMetaImages isCrash:false];
343+
NSArray<SentryDebugMeta *> *debugMetaImages = [[[SentryDependencyContainer sharedInstance] debugImageProvider] getDebugImagesForImageAddressesFromCache:imagesAddrToRetrieveDebugMetaImages];
344344

345345
for (SentryDebugMeta *debugImage in debugMetaImages) {
346346
[serializedDebugMetaImages addObject:[debugImage serialize]];

0 commit comments

Comments
 (0)