@@ -10,49 +10,29 @@ import Foundation
1010 public let callStacks : [ SentryMXCallStack ]
1111 public let callStackPerThread : Bool
1212
13- init ( callStacks: [ SentryMXCallStack ] , callStackPerThread: Bool ) {
14- self . callStacks = callStacks
15- self . callStackPerThread = callStackPerThread
16- }
17-
1813 static func from( data: Data ) throws -> SentryMXCallStackTree {
1914 return try JSONDecoder ( ) . decode ( SentryMXCallStackTree . self, from: data)
2015 }
2116}
2217
2318@objcMembers
2419@_spi ( Private) public class SentryMXCallStack : NSObject , Codable {
25- public var threadAttributed : Bool ?
26- public var callStackRootFrames : [ SentryMXFrame ]
20+ public let threadAttributed : Bool ?
21+ public let callStackRootFrames : [ SentryMXFrame ]
2722
2823 public var flattenedRootFrames : [ SentryMXFrame ] {
2924 return callStackRootFrames. flatMap { [ $0] + $0. frames }
3025 }
31-
32- init ( threadAttributed: Bool , rootFrames: [ SentryMXFrame ] ) {
33- self . threadAttributed = threadAttributed
34- self . callStackRootFrames = rootFrames
35- }
3626}
3727
3828@objcMembers
3929@_spi ( Private) public class SentryMXFrame : NSObject , Codable {
40- public var binaryUUID : UUID
41- public var offsetIntoBinaryTextSegment : Int
42- public var binaryName : String ?
43- public var address : UInt64
44- public var subFrames : [ SentryMXFrame ] ?
45-
46- public var sampleCount : Int ?
47-
48- init ( binaryUUID: UUID , offsetIntoBinaryTextSegment: Int , sampleCount: Int ? = nil , binaryName: String ? = nil , address: UInt64 , subFrames: [ SentryMXFrame ] ? ) {
49- self . binaryUUID = binaryUUID
50- self . offsetIntoBinaryTextSegment = offsetIntoBinaryTextSegment
51- self . sampleCount = sampleCount
52- self . binaryName = binaryName
53- self . address = address
54- self . subFrames = subFrames
55- }
30+ public let binaryUUID : UUID
31+ public let offsetIntoBinaryTextSegment : Int
32+ public let binaryName : String ?
33+ public let address : UInt64
34+ public let subFrames : [ SentryMXFrame ] ?
35+ public let sampleCount : Int ?
5636
5737 var frames : [ SentryMXFrame ] {
5838 return ( subFrames? . flatMap { [ $0] + $0. frames } ?? [ ] )
0 commit comments