OOM Analysis
iOS
1 Estimated Value of memory usage
CrashSight uses the memory usage collected in the last 3 seconds before the app exit, a linear model is fitted to extrapolate the memory usage for the second when the exit occurred.Assume "t" is the second when the crash occurred, "t - 1" is the second before the crash occurred, and so on. MemoryUsaget represents the memory usage of the device at moment "t".
2 OOM Decision Rules
The decision rule for iOS is as follows.
Android
OOM Decision Rules
The decision rule for Android is as follows.
- For Android 11 and above, CrashSight determines whether an OOM has occurred basedon the reason code of the process's death in the official Google documentation ApplicationExitInfo when the exit reason is REASON_LOW_MEMORY.
- For Android 10 and below, CrashSight uses memory usage data from 60 seconds before the app exits to determine whether an OOM has occurred using a model.