Performance/Android

From MozillaWiki
< Performance
Revision as of 14:23, 22 January 2019 by Acreskey (talk | contribs) (Updates to app table)
Jump to navigation Jump to search

This page contains helpful resources relating to the performance of our Android apps.

Apps

Android App Configurations

The Android apps are configured independently and so have different performance characteristics.

GeckoView is configured at initialization via GeckoRunTimeSettings https://mozilla.github.io/geckoview/javadoc/mozilla-central/org/mozilla/geckoview/GeckoRuntimeSettings.Builder.html

In addition GeckoSessionSettings can be modified to change the behaviour of individual browsing sessions.

App Remote Debugging Content Blocking GeckoView is instantiated Runtime settings configured here
geckoview_example Enabled by default Enabled: all tracking categories App launch https://searchfox.org/mozilla-central/rev/330daedbeac2bba296d663668e0e0cf248bc6823/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java#117-136
reference-browser Disabled (can be enabled via UI) Disabled App launch https://github.com/mozilla-mobile/reference-browser/blob/ada3208b7f2f0141fd98707d05ed0e4a82783557/app/src/geckoNightly/java/org/mozilla/reference/browser/EngineProvider.kt
Focus/Klar Not available. https://github.com/mozilla-mobile/focus-android/issues/3745 Enabled: Ad trackers, analytics trackers, social trackers (UI to modify and add others) First search https://github.com/mozilla-mobile/focus-android/blob/20cd62cfd37935b8da6b65dd105f79099515fd32/app/src/main/java/org/mozilla/focus/web/GeckoWebViewProvider.kt

Performance Measurements

Gotchas
  • Running the apps with Remote Debugging enabled can seriously degrade performance
  • Swipe killing the apps will not kill the Gecko processes. Used adb force-stop, e.g. adb shell am force-stop org.mozilla.org.mozilla.geckoview_example