Performance/Android: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(First pass of Android perf page)
 
(Added Gotchas)
Line 1: Line 1:
This page contains links to helpful resources on the performance of our Android apps.
This page contains links to helpful resources on the performance of our Android apps.


== Apps ==
== Apps ==
Line 14: Line 13:
{| class="wikitable"
{| class="wikitable"
|-
|-
! App !! Remote debugging !! Content Blocking !! GeckoView is instantiated !! Runtime settings configured here
! App !! Remote Debugging !! Content Blocking !! GeckoView is instantiated !! Runtime settings configured here
|-
|-
| geckoview_example || Enabled by default || Disabled || App launch || https://searchfox.org/mozilla-central/rev/330daedbeac2bba296d663668e0e0cf248bc6823/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java#117-136
| geckoview_example || Enabled by default || Disabled || App launch || https://searchfox.org/mozilla-central/rev/330daedbeac2bba296d663668e0e0cf248bc6823/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java#117-136
Line 22: Line 21:
| Focus/Klar || Not available. https://github.com/mozilla-mobile/focus-android/issues/3745 || Enabled ** notes ** || First search || https://github.com/mozilla-mobile/focus-android/blob/20cd62cfd37935b8da6b65dd105f79099515fd32/app/src/main/java/org/mozilla/focus/web/GeckoWebViewProvider.kt
| Focus/Klar || Not available. https://github.com/mozilla-mobile/focus-android/issues/3745 || Enabled ** notes ** || 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 app 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

Revision as of 13:40, 22 January 2019

This page contains links to helpful resources on 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 Disabled 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 ** notes ** 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 app 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