Various improvements

This commit is contained in:
Ali
2023-09-15 21:12:01 +02:00
parent b7e4fb3d57
commit 3453137463
20 changed files with 235 additions and 19 deletions

View File

@@ -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
}
}
}