@@ -121,16 +121,16 @@ public extension LifetimeTrackable {
121121
122122 internal var trackedGroups = [ String: EntriesGroup] ( )
123123
124- enum LifetimeState {
124+ public enum LifetimeState {
125125 case valid
126126 case leaky
127127 }
128128
129129 public final class Entry {
130- var maxCount : Int
131- let name : String
132- fileprivate( set) var count : Int
133- fileprivate( set) var pointers : Set < String >
130+ public fileprivate ( set ) var maxCount : Int
131+ public let name : String
132+ public fileprivate( set) var count : Int
133+ public fileprivate( set) var pointers : Set < String >
134134
135135 init ( name: String , maxCount: Int ) {
136136 self . maxCount = maxCount
@@ -148,16 +148,16 @@ public extension LifetimeTrackable {
148148 }
149149 }
150150
151- var lifetimeState : LifetimeState {
151+ public var lifetimeState : LifetimeState {
152152 return count > maxCount ? . leaky : . valid
153153 }
154154 }
155155
156156 @objc public final class EntriesGroup : NSObject {
157- var maxCount : Int = 0
158- var name : String ? = nil
159- fileprivate( set) var count : Int = 0
160- fileprivate( set) var entries = [ String: Entry] ( )
157+ public fileprivate ( set ) var maxCount : Int = 0
158+ public fileprivate ( set ) var name : String ? = nil
159+ public fileprivate( set) var count : Int = 0
160+ public fileprivate( set) var entries = [ String: Entry] ( )
161161 private var usedMaxCountOverride = false
162162
163163 init ( name: String ) {
@@ -166,7 +166,7 @@ public extension LifetimeTrackable {
166166 }
167167 }
168168
169- var lifetimeState : LifetimeState {
169+ public var lifetimeState : LifetimeState {
170170 // Mark the group as leaky if the count per group highter than it's max count
171171 guard count <= maxCount else {
172172 return . leaky
0 commit comments