зеркало из https://github.com/mozilla/gecko-dev.git
Bug 785960 - "Don't keep activities" developer option gets counted as OOM in telemetry. r=kats
This commit is contained in:
Родитель
1188de1f60
Коммит
457fb369f7
|
@ -1511,7 +1511,9 @@ abstract public class GeckoApp
|
|||
savedInstanceState.getBoolean(SAVED_STATE_IN_BACKGROUND, false);
|
||||
Log.i(LOGTAG, "Was in background: " + wasInBackground);
|
||||
|
||||
if (!wasInBackground) {
|
||||
// Don't log OOM-kills if only one activity was destroyed. (For example
|
||||
// from "Don't keep activities" on ICS)
|
||||
if (!wasInBackground && !mIsRestoringActivity) {
|
||||
Telemetry.HistogramAdd("OUT_OF_MEMORY_KILLED", 1);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче