-
-
Notifications
You must be signed in to change notification settings - Fork 340
/
Copy pathSentryDebugImageProvider.h
90 lines (78 loc) · 4.42 KB
/
SentryDebugImageProvider.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#import <Foundation/Foundation.h>
@class SentryDebugMeta;
@class SentryFrame;
@class SentryThread;
NS_ASSUME_NONNULL_BEGIN
/**
* Reserved for hybrid SDKs that the debug image list for symbolication.
* @todo This class should be renamed to @c SentryDebugImage in a future version.
*/
@interface SentryDebugImageProvider : NSObject
- (instancetype)init;
/**
* Returns a list of debug images that are being referenced in the given threads.
* @param threads A list of @c SentryThread that may or may not contain stacktraces.
* @warning This assumes a crash has occurred and attempts to read the crash information from each
* image's data segment, which may not be present or be invalid if a crash has not actually
* occurred. To avoid this, use the new @c -[getDebugImagesForThreads:isCrash:] instead.
* @deprecated Use @c -[getDebugImagesForThreads:isCrash:] instead.
*/
- (NSArray<SentryDebugMeta *> *)getDebugImagesForThreads:(NSArray<SentryThread *> *)threads
DEPRECATED_MSG_ATTRIBUTE("Use -[getDebugImagesForThreads:isCrash:] instead.");
/**
* Returns a list of debug images that are being referenced in the given threads.
* @param threads A list of @c SentryThread that may or may not contain stacktraces.
* @param isCrash @c YES if we're collecting binary images for a crash report, @c NO if we're
* gathering them for other backtrace information, like a performance transaction. If this is for a
* crash, each image's data section crash info is also included.
*/
- (NSArray<SentryDebugMeta *> *)getDebugImagesForThreads:(NSArray<SentryThread *> *)threads
isCrash:(BOOL)isCrash
DEPRECATED_MSG_ATTRIBUTE("This method is slow and will be removed in a future version. Use "
"-[getDebugImagesFromCacheForThreads:] instead.");
;
/**
* Returns a list of debug images that are being referenced by the given frames.
* @param frames A list of stack frames.
* @warning This assumes a crash has occurred and attempts to read the crash information from each
* image's data segment, which may not be present or be invalid if a crash has not actually
* occurred. To avoid this, use the new @c -[getDebugImagesForFrames:isCrash:] instead.
* @deprecated Use @c -[getDebugImagesForFrames:isCrash:] instead.
*/
- (NSArray<SentryDebugMeta *> *)getDebugImagesForFrames:(NSArray<SentryFrame *> *)frames
DEPRECATED_MSG_ATTRIBUTE("Use -[getDebugImagesForFrames:isCrash:] instead.");
/**
* Returns a list of debug images that are being referenced by the given frames.
* @param frames A list of stack frames.
* @param isCrash @c YES if we're collecting binary images for a crash report, @c NO if we're
* gathering them for other backtrace information, like a performance transaction. If this is for a
* crash, each image's data section crash info is also included.
*/
- (NSArray<SentryDebugMeta *> *)getDebugImagesForFrames:(NSArray<SentryFrame *> *)frames
isCrash:(BOOL)isCrash
DEPRECATED_MSG_ATTRIBUTE("This method is slow and will be removed in a future version. Use "
"-[getDebugImagesFromCacheForFrames:] instead.");
/**
* Returns the current list of debug images. Be aware that the @c SentryDebugMeta is actually
* describing a debug image.
* @warning This assumes a crash has occurred and attempts to read the crash information from each
* image's data segment, which may not be present or be invalid if a crash has not actually
* occurred. To avoid this, use the new @c -[getDebugImagesCrashed:] instead.
* @deprecated Use @c -[getDebugImagesCrashed:] instead.
*/
- (NSArray<SentryDebugMeta *> *)getDebugImages DEPRECATED_MSG_ATTRIBUTE(
"Use -[getDebugImagesCrashed:] instead.");
/**
* Returns the current list of debug images. Be aware that the @c SentryDebugMeta is actually
* describing a debug image.
* @param isCrash @c YES if we're collecting binary images for a crash report, @c NO if we're
* gathering them for other backtrace information, like a performance transaction. If this is for a
* crash, each image's data section crash info is also included.
*
* @warning This method is slow. Please consider using @c getDebugImagesFromCache.
*/
- (NSArray<SentryDebugMeta *> *)getDebugImagesCrashed:(BOOL)isCrash
DEPRECATED_MSG_ATTRIBUTE("This method is slow and will be removed in a future version. Use "
"-[getDebugImagesFromCache:] instead.");
@end
NS_ASSUME_NONNULL_END