android-components icon indicating copy to clipboard operation
android-components copied to clipboard

Telemetry probe to measure the number of times we get killed in the background

Open fluffyemily opened this issue 4 years ago • 1 comments

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

fluffyemily avatar Mar 30 '21 15:03 fluffyemily

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.

dblohm7 avatar Mar 30 '21 19:03 dblohm7

Moved to bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1794924

Change performed by the Move to Bugzilla add-on.

csadilek avatar Oct 12 '22 22:10 csadilek