forked from getsentry/sentry-cocoa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSentryStacktrace.h
41 lines (31 loc) · 974 Bytes
/
SentryStacktrace.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#import <Foundation/Foundation.h>
#import "SentryDefines.h"
#import "SentrySerializable.h"
NS_ASSUME_NONNULL_BEGIN
@class SentryFrame;
NS_SWIFT_NAME(Stacktrace)
@interface SentryStacktrace : NSObject <SentrySerializable>
SENTRY_NO_INIT
/**
* Array of all SentryFrame in the stacktrace
*/
@property (nonatomic, strong) NSArray<SentryFrame *> *frames;
/**
* Registers of the thread for additional information used on the server
*/
@property (nonatomic, strong) NSDictionary<NSString *, NSString *> *registers;
/**
* Initialize a SentryStacktrace with frames and registers
* @param frames NSArray
* @param registers NSArray
* @return SentryStacktrace
*/
- (instancetype)initWithFrames:(NSArray<SentryFrame *> *)frames
registers:(NSDictionary<NSString *, NSString *> *)registers;
/**
* This will be called internally, is used to remove duplicated frames for
* certain crashes.
*/
- (void)fixDuplicateFrames;
@end
NS_ASSUME_NONNULL_END