summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2018-07-09 17:57:10 +0200
committerJorim Jaggi <jjaggi@google.com>2018-07-13 15:16:48 +0200
commit402d78ebb74e9642f6e291b7b13768b993d7519c (patch)
tree35b76eedc10d0cb138bfd57b43a4e3ca8b9546b5 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentca8a8a999b271c65148e70970f6dda4389b8e458 (diff)
Pin compiled code of HOME app
Keeping the code in memory of the currently set home app is important for latency as we don't have any kind of starting window/splash screen when pressing the home app to hide any latency. Memory impact: Pinning dex/vdex: In practical scenarios, this should be < 500kb. The home app is usually profile-speed compiled, for which the resulting dex/vdex files are about 2 mb. However, during regular use, at least 1.5 MB of it is referenced in memory. This makes sense: By definition profile-speed only compiles the things that is usually frequently executed during regular execution. Pinning apk: With Launcher 3 in practical scenarios this should be about 3.7 MB, as the APK is about 5.7 MB but 2 MB are usually referenced in any case. Bug: 111132016 Bug: 78585335 Test: Inspect "adb shell dumpsys pinner" after boot. Test: Check for pinned files after updating camera/home. Test: Check for pinned files after user switch with different default apps. Test: Check for pinned files after bg-dexopt. Test: Check for pinned files after bg-dexopt + kill pid. Change-Id: I6cdbc06d089efeb1c72a51216879ba0573502009
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions