Telemetry probe to measure the number of times we get killed in the background
Individual issue to track new telemetry related to page persistence metrics.
- number of times we get killed in the background using
-
onKill (for content process) and -
getHistoricalProcessExitReasons for main process https://developer.android.com/reference/kotlin/android/app/ActivityManager#gethistoricalprocessexitreasons (API30 only I think)
This metrics could help us track how memory/performance affects retaining tabs/getting killed and how often our users get their tabs reloaded. Also it can help us know how many tabs are actually alive in users devices (e.g. when thinking about memory/performance tradeoffs based on number of tabs)
┆Issue is synchronized with this Jira Task
The first bullet (for the number of times background content processes have been killed) was already landed as part of #17864, so this issue only needs to deal with the getHistoricalProcessExitReasons bit.
Moved to bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1794924
Change performed by the Move to Bugzilla add-on.