Warn about memory usage.
This commit is contained in:
parent
5a7f51e9ad
commit
dec8fd24bd
@ -47,6 +47,12 @@ public class LocalDevice: NSObject {
|
||||
guard let memoryUsageUInt64 = self.memoryUsageUInt64 else {
|
||||
return "Unknown"
|
||||
}
|
||||
return "\(memoryUsageUInt64)"
|
||||
let nseMemoryUsageWarn: UInt64 = 24 * 1000 * 1000
|
||||
if CurrentAppContext().isNSE,
|
||||
memoryUsageUInt64 > nseMemoryUsageWarn {
|
||||
return "\(memoryUsageUInt64) ⚠️⚠️⚠️"
|
||||
} else {
|
||||
return "\(memoryUsageUInt64)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user