mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Various improvements
This commit is contained in:
@@ -1484,8 +1484,12 @@ private func extractAccountManagerState(records: AccountRecordsView<TelegramAcco
|
||||
Logger.shared.log("App \(self.episodeId)", "Memory consumption: \(value / (1024 * 1024)) MB")
|
||||
|
||||
if !buildConfig.isAppStoreBuild {
|
||||
if value >= 1 * 1024 * 1024 * 1024 {
|
||||
if value >= 800 * 1024 * 1024 {
|
||||
#if targetEnvironment(simulator)
|
||||
print("Debug memory")
|
||||
#else
|
||||
preconditionFailure()
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user