|
4 | 4 | #include <sys/time.h> |
5 | 5 | @import Foundation; |
6 | 6 |
|
7 | | -NS_ASSUME_NONNULL_BEGIN |
8 | | - |
9 | | -/// Describes a basic activity event reported by LoggingSupport. |
10 | | -/// The implementation of this class resides in the LoggingSupport framework. |
11 | | -@interface OSActivityEvent : NSObject |
12 | | - |
13 | | -@property (readonly, nonatomic) NSUInteger activityID; |
14 | | -@property (copy, nonatomic) NSString *eventMessage; |
15 | | -@property (readonly, nonatomic) NSUInteger eventType; |
16 | | -@property (readonly, nonatomic) NSUInteger machTimestamp; |
17 | | -@property (readonly, nonatomic) NSUInteger parentActivityID; |
18 | | -@property (readonly, nonatomic) BOOL persisted; |
19 | | -@property (readonly, copy, nonatomic) NSString *process; |
20 | | -@property (readonly, nonatomic) int processID; |
21 | | -@property (readonly, copy, nonatomic) NSString *processImagePath; |
22 | | -@property (readonly, copy, nonatomic) NSUUID *processImageUUID; |
23 | | -@property (readonly, nonatomic) NSUInteger processUniqueID; |
24 | | -@property (readonly, copy, nonatomic) NSString *sender; |
25 | | -@property (readonly, copy, nonatomic) NSString *senderImagePath; |
26 | | -@property (readonly, copy, nonatomic) NSUUID *senderImageUUID; |
27 | | -@property (readonly, nonatomic) NSUInteger threadID; |
28 | | -@property (readonly, nonatomic) struct timeval timeGMT; |
29 | | -@property (readonly, copy, nonatomic) NSDate *timestamp; |
30 | | -@property (readonly, copy, nonatomic) NSTimeZone *timezone; |
31 | | -@property (retain, nonatomic) NSString *timezoneName; |
32 | | -@property (readonly, nonatomic) NSUInteger traceID; |
33 | | -@property (readonly, nonatomic) struct timezone tz; |
34 | | - |
35 | | --(BOOL)persisted; |
36 | | --(id)description; |
37 | | --(id)properties; |
38 | | --(void)_addProperties:(id)arg0 ; |
39 | | --(id)_initWithProperties:(id)arg0; |
40 | | - |
41 | | -@end |
42 | | - |
43 | | -NS_ASSUME_NONNULL_END |
44 | | - |
45 | | - |
46 | | -/// A subclass of OSActivityEvent, |
47 | | -/// with additional fields suitable for an informational log message. |
48 | | -@interface OSActivityLogMessageEvent : OSActivityEvent |
49 | | - |
50 | | -@property (readonly, copy, nonatomic) NSString * _Nullable category; |
51 | | -@property (readonly, nonatomic) unsigned char messageType; |
52 | | -@property (readonly, nonatomic) NSUInteger senderProgramCounter; |
53 | | -@property (readonly, copy, nonatomic) NSString * _Nullable subsystem; |
54 | | - |
55 | | --(instancetype _Nonnull)initWithEntry:(struct os_activity_stream_entry_s * _Nonnull)arg0 ; |
56 | | -//-(void)_addProperties:(id)arg0 ; |
57 | | - |
58 | | -@end |
59 | | - |
60 | 7 | #define OS_ACTIVITY_MAX_CALLSTACK 32 |
61 | 8 |
|
62 | 9 | enum { |
@@ -159,13 +106,11 @@ typedef struct os_activity_statedump_s { |
159 | 106 | struct os_activity_stream_entry_s { |
160 | 107 | os_activity_stream_type_t type; |
161 | 108 |
|
162 | | - // information about the process streaming the data |
163 | 109 | pid_t pid; |
164 | 110 | uint64_t proc_id; |
165 | 111 | const uint8_t *proc_imageuuid; |
166 | 112 | const char *proc_imagepath; |
167 | 113 |
|
168 | | - // the activity associated with this streamed event |
169 | 114 | os_activity_id_t activity_id; |
170 | 115 | os_activity_id_t parent_id; |
171 | 116 |
|
|
0 commit comments