Update boot image and system server profiles [M27C22P58S0PP]
Bug: 254051423
Test: go/art-benchmark?p=BootImageProfileId:36711&f=CandidateName:in:36720
Test: ATP test https://android-build.googleplex.com/builds/abtd/run/L47100000963607173
= Perf stats =
(lower is better)
Regular update to the boot image profiles, Benchmark shows an improvement in app cold startup time and good code size reduction, besides no noticeable impact on memory and boot time. This change also will resolve some of the regressions from the prev updates.
Avg % [Confidence interval min-max %]
Startup: -1.37 [-2.51, -0.23]
Memory(PSS): -0.13 [-2.38, 2.13]
Boot time: 0.09 [-0.9, 1.09]
Code size (.oat + .art + .odex): -0.61MB (-0.73%)
Ignore-AOSP-First: Boot image profiles
BYPASS_INCLUSIVE_LANGUAGE_REASON: Profile of existing code
=Generation Strategy=
method_threshold: 0.27
image_class_threshold: 0.22
preloaded_classes_threshold: 0.58
priority_packages_thresholds {
key: "service-appsearch.jar.prof:CLASS:android"
value: 0.015714286
}
priority_packages_thresholds {
key: "service-appsearch.jar.prof:METHOD:android"
value: 0.019285714
}
priority_packages_thresholds {
key: "service-art.jar.prof:CLASS:android"
value: 0.015714286
}
priority_packages_thresholds {
key: "service-art.jar.prof:METHOD:android"
value: 0.019285714
}
priority_packages_thresholds {
key: "service-connectivity.jar.prof:CLASS:android"
value: 0.015714286
}
priority_packages_thresholds {
key: "service-connectivity.jar.prof:METHOD:android"
value: 0.019285714
}
priority_packages_thresholds {
key: "service-wifi.jar.prof:CLASS:android"
value: 0.015714286
}
priority_packages_thresholds {
key: "service-wifi.jar.prof:METHOD:android"
value: 0.019285714
}
priority_packages_thresholds {
key: "services.jar.prof:CLASS:android"
value: 0.015714286
}
priority_packages_thresholds {
key: "services.jar.prof:METHOD:android"
value: 0.019285714
}
=Profile stats=
Data info:
- total aggregations: 84
- number of (device types, builds): 28
File boot-image-profile.txt
- hot methods: 157 added, 87 removed
- methods: 157 added, 87 removed
- classes: 15 added, 9 removed
- totals now: 32556 hot methods, 32556 methods, 17270 classes
- totals before: 32486 hot methods, 32486 methods, 17264 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 120, 48, 15, 8, 21070, 9952
java, 37, 38, 0, 0, 7093, 2101
android.view, 41, 10, 7, 1, 3448, 1058
android.hardware, 8, 4, 0, 0, 501, 859
android.animation, 14, 0, 7, 0, 411, 82
android.app, 17, 5, 1, 0, 2954, 1108
android.content, 16, 11, 0, 0, 1893, 585
android.graphics, 5, 0, 0, 0, 1973, 345
android.widget, 2, 0, 0, 0, 1404, 399
File preloaded-classes
- hot methods: 0 added, 0 removed
- methods: 0 added, 0 removed
- classes: 30 added, 10 removed
- totals now: 0 hot methods, 0 methods, 17216 classes
- totals before: 0 hot methods, 0 methods, 17196 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 0, 0, 23, 9, 0, 9910
com.android, 0, 0, 6, 0, 0, 3475
java, 0, 0, 1, 0, 0, 2098
android.view, 0, 0, 6, 0, 0, 1047
android.hardware, 0, 0, 5, 0, 0, 858
android.animation, 0, 0, 2, 0, 0, 75
android.app, 0, 0, 6, 0, 0, 1104
android.media, 0, 0, 1, 0, 0, 601
File boot-image-profile.txt
- hot methods: 120 added, 48 removed
- methods: 120 added, 48 removed
- classes: 15 added, 10 removed
- totals now: 22519 hot methods, 22519 methods, 14057 classes
- totals before: 22447 hot methods, 22447 methods, 14052 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 120, 48, 15, 8, 21006, 9921
java, 0, 0, 0, 1, 2, 115
android.view, 41, 10, 7, 1, 3448, 1058
android.hardware, 8, 4, 0, 0, 501, 859
android.animation, 14, 0, 7, 0, 411, 82
android.app, 17, 5, 1, 0, 2954, 1108
android.content, 16, 11, 0, 0, 1893, 585
android.graphics, 5, 0, 0, 0, 1973, 345
android.widget, 2, 0, 0, 0, 1404, 399
File preloaded-classes
- hot methods: 0 added, 0 removed
- methods: 0 added, 0 removed
- classes: 29 added, 9 removed
- totals now: 0 hot methods, 0 methods, 14007 classes
- totals before: 0 hot methods, 0 methods, 13987 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 0, 0, 23, 7, 0, 9879
com.android, 0, 0, 6, 0, 0, 3046
java, 0, 0, 0, 1, 0, 115
android.view, 0, 0, 6, 0, 0, 1047
android.hardware, 0, 0, 5, 0, 0, 858
android.animation, 0, 0, 2, 0, 0, 75
android.app, 0, 0, 6, 0, 0, 1104
android.media, 0, 0, 1, 0, 0, 601
File art-profile
- hot methods: 2492 added, 4332 removed
- methods: 2492 added, 4332 removed
- classes: 11 added, 1219 removed
- totals now: 12752 hot methods, 12752 methods, 1486 classes
- totals before: 14592 hot methods, 14592 methods, 2694 classes
per package info as csv (selected):
package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
android, 30, 30, 1, 21, 91, 25
com.android, 2462, 4302, 10, 1181, 12661, 1432
android.hardware, 28, 29, 0, 17, 75, 12
android.app, 0, 1, 0, 2, 0, 2
android.content, 0, 0, 0, 1, 2, 3
android.net, 2, 0, 0, 0, 10, 3
InternalReferenceRawProfileId: 36711
InternalReferenceCandidateProfileId: 36720
Test: build & benchmark
Change-Id: Ibd13bc54c1fd8927030d41f3670021379ebaccc8
diff --git a/boot/preloaded-classes b/boot/preloaded-classes
index 187bfcb..0f69d13 100644
--- a/boot/preloaded-classes
+++ b/boot/preloaded-classes
@@ -93,6 +93,7 @@
android.animation.AnimationHandler$AnimationFrameCallbackProvider
android.animation.AnimationHandler$MyFrameCallbackProvider
android.animation.AnimationHandler
+android.animation.Animator$AnimatorCaller
android.animation.Animator$AnimatorConstantState
android.animation.Animator$AnimatorListener
android.animation.Animator$AnimatorPauseListener
@@ -100,6 +101,7 @@
android.animation.AnimatorInflater$PathDataEvaluator
android.animation.AnimatorInflater
android.animation.AnimatorListenerAdapter
+android.animation.AnimatorSet$$ExternalSyntheticLambda0
android.animation.AnimatorSet$1
android.animation.AnimatorSet$2
android.animation.AnimatorSet$3
@@ -621,7 +623,9 @@
android.app.OnActivityPausedListener
android.app.PackageInstallObserver$1
android.app.PackageInstallObserver
+android.app.PendingIntent$$ExternalSyntheticLambda0
android.app.PendingIntent$$ExternalSyntheticLambda1
+android.app.PendingIntent$$ExternalSyntheticLambda2
android.app.PendingIntent$1
android.app.PendingIntent$CancelListener
android.app.PendingIntent$CanceledException
@@ -690,12 +694,14 @@
android.app.ServiceStartNotAllowedException
android.app.SharedElementCallback$1
android.app.SharedElementCallback
+android.app.SharedPreferencesImpl$$ExternalSyntheticLambda0
android.app.SharedPreferencesImpl$1
android.app.SharedPreferencesImpl$EditorImpl$$ExternalSyntheticLambda0
android.app.SharedPreferencesImpl$EditorImpl$1
android.app.SharedPreferencesImpl$EditorImpl$2
android.app.SharedPreferencesImpl$EditorImpl
android.app.SharedPreferencesImpl$MemoryCommitResult
+android.app.SharedPreferencesImpl$SharedPreferencesThreadFactory
android.app.SharedPreferencesImpl
android.app.StackTrace
android.app.StatusBarManager
@@ -851,6 +857,7 @@
android.app.SystemServiceRegistry
android.app.TaskInfo
android.app.TaskStackListener
+android.app.UiModeManager$Globals
android.app.UiModeManager$InnerListener
android.app.UiModeManager$OnProjectionStateChangedListener
android.app.UiModeManager$OnProjectionStateChangedListenerResourceManager
@@ -1263,6 +1270,7 @@
android.app.wearable.WearableSensingManager
android.apphibernation.AppHibernationManager
android.appwidget.AppWidgetManager$$ExternalSyntheticLambda0
+android.appwidget.AppWidgetManager$$ExternalSyntheticLambda10
android.appwidget.AppWidgetManager$$ExternalSyntheticLambda1
android.appwidget.AppWidgetManager$$ExternalSyntheticLambda2
android.appwidget.AppWidgetManager$$ExternalSyntheticLambda3
@@ -2343,6 +2351,8 @@
android.gsi.IGsiService$Stub$Proxy
android.gsi.IGsiService$Stub
android.gsi.IGsiService
+android.gui.StalledTransactionInfo$1
+android.gui.StalledTransactionInfo
android.hardware.Camera$CameraInfo
android.hardware.Camera$Face
android.hardware.Camera
@@ -2470,6 +2480,7 @@
android.hardware.camera2.CameraManager$CameraManagerGlobal$7
android.hardware.camera2.CameraManager$CameraManagerGlobal
android.hardware.camera2.CameraManager$DeviceStateListener
+android.hardware.camera2.CameraManager$FoldStateListener$$ExternalSyntheticLambda0
android.hardware.camera2.CameraManager$FoldStateListener
android.hardware.camera2.CameraManager$TorchCallback
android.hardware.camera2.CameraManager
@@ -2654,6 +2665,9 @@
android.hardware.display.DeviceProductInfo$ManufactureDate$1
android.hardware.display.DeviceProductInfo$ManufactureDate
android.hardware.display.DeviceProductInfo
+android.hardware.display.DisplayManager$$ExternalSyntheticLambda0
+android.hardware.display.DisplayManager$$ExternalSyntheticLambda1
+android.hardware.display.DisplayManager$$ExternalSyntheticLambda2
android.hardware.display.DisplayManager$DisplayListener
android.hardware.display.DisplayManager$WeakDisplayCache
android.hardware.display.DisplayManager
@@ -2772,6 +2786,7 @@
android.hardware.input.InputManagerGlobal$InputDeviceListenerDelegate
android.hardware.input.InputManagerGlobal$OnTabletModeChangedListenerDelegate
android.hardware.input.InputManagerGlobal
+android.hardware.input.InputSettings
android.hardware.input.KeyboardLayout$1
android.hardware.input.KeyboardLayout
android.hardware.input.TouchCalibration$1
@@ -4764,6 +4779,7 @@
android.media.AudioManager$OnAmPortUpdateListener
android.media.AudioManager$OnAudioFocusChangeListener
android.media.AudioManager$OnAudioPortUpdateListener
+android.media.AudioManager$OnModeChangedListener
android.media.AudioManager$PlaybackConfigChangeCallbackData
android.media.AudioManager$RecordConfigChangeCallbackData
android.media.AudioManager$SafeWaitObject
@@ -6493,7 +6509,6 @@
android.security.KeyChainAliasCallback
android.security.KeyChainException
android.security.KeyPairGeneratorSpec
-android.security.KeyStore$State
android.security.KeyStore2$$ExternalSyntheticLambda0
android.security.KeyStore2$$ExternalSyntheticLambda1
android.security.KeyStore2$$ExternalSyntheticLambda3
@@ -6515,12 +6530,6 @@
android.security.attestationverification.AttestationVerificationManager
android.security.keymaster.ExportResult$1
android.security.keymaster.ExportResult
-android.security.keymaster.IKeyAttestationApplicationIdProvider$Stub
-android.security.keymaster.IKeyAttestationApplicationIdProvider
-android.security.keymaster.KeyAttestationApplicationId$1
-android.security.keymaster.KeyAttestationApplicationId
-android.security.keymaster.KeyAttestationPackageInfo$1
-android.security.keymaster.KeyAttestationPackageInfo
android.security.keymaster.KeyCharacteristics$1
android.security.keymaster.KeyCharacteristics
android.security.keymaster.KeymasterArgument$1
@@ -8377,6 +8386,8 @@
android.view.IScrollCaptureResponseListener$Stub$Proxy
android.view.IScrollCaptureResponseListener$Stub
android.view.IScrollCaptureResponseListener
+android.view.ISurfaceControlViewHostParent$Stub
+android.view.ISurfaceControlViewHostParent
android.view.ISystemGestureExclusionListener$Stub$Proxy
android.view.ISystemGestureExclusionListener$Stub
android.view.ISystemGestureExclusionListener
@@ -8577,6 +8588,7 @@
android.view.SurfaceControl$TrustedPresentationThresholds
android.view.SurfaceControl
android.view.SurfaceControlHdrLayerInfoListener
+android.view.SurfaceControlRegistry
android.view.SurfaceControlViewHost$SurfacePackage$1
android.view.SurfaceControlViewHost$SurfacePackage
android.view.SurfaceHolder$Callback2
@@ -8590,6 +8602,7 @@
android.view.SurfaceView$$ExternalSyntheticLambda4
android.view.SurfaceView$$ExternalSyntheticLambda5
android.view.SurfaceView$1
+android.view.SurfaceView$2
android.view.SurfaceView$SurfaceViewPositionUpdateListener
android.view.SurfaceView$SyncBufferTransactionCallback
android.view.SurfaceView
@@ -8726,6 +8739,7 @@
android.view.ViewRootImpl$$ExternalSyntheticLambda16
android.view.ViewRootImpl$$ExternalSyntheticLambda17
android.view.ViewRootImpl$$ExternalSyntheticLambda18
+android.view.ViewRootImpl$$ExternalSyntheticLambda19
android.view.ViewRootImpl$$ExternalSyntheticLambda1
android.view.ViewRootImpl$$ExternalSyntheticLambda2
android.view.ViewRootImpl$$ExternalSyntheticLambda3
@@ -8744,6 +8758,7 @@
android.view.ViewRootImpl$6
android.view.ViewRootImpl$7
android.view.ViewRootImpl$8$$ExternalSyntheticLambda0
+android.view.ViewRootImpl$8$$ExternalSyntheticLambda1
android.view.ViewRootImpl$8
android.view.ViewRootImpl$AccessibilityInteractionConnection
android.view.ViewRootImpl$AccessibilityInteractionConnectionManager
@@ -9870,6 +9885,7 @@
android.window.WindowInfosListener
android.window.WindowMetricsController$$ExternalSyntheticLambda0
android.window.WindowMetricsController
+android.window.WindowOnBackInvokedDispatcher$$ExternalSyntheticLambda0
android.window.WindowOnBackInvokedDispatcher$Checker
android.window.WindowOnBackInvokedDispatcher$OnBackInvokedCallbackWrapper$$ExternalSyntheticLambda0
android.window.WindowOnBackInvokedDispatcher$OnBackInvokedCallbackWrapper$$ExternalSyntheticLambda1
@@ -10620,6 +10636,9 @@
com.android.internal.compat.IPlatformCompatNative
com.android.internal.config.appcloning.AppCloningDeviceConfigHelper$$ExternalSyntheticLambda0
com.android.internal.config.appcloning.AppCloningDeviceConfigHelper
+com.android.internal.config.sysui.SystemUiSystemPropertiesFlags$FlagResolver
+com.android.internal.config.sysui.SystemUiSystemPropertiesFlags$NotificationFlags
+com.android.internal.config.sysui.SystemUiSystemPropertiesFlags
com.android.internal.content.F2fsUtils
com.android.internal.content.NativeLibraryHelper$Handle
com.android.internal.content.NativeLibraryHelper
@@ -11379,6 +11398,7 @@
com.android.internal.telephony.Phone$NetworkSelectMessage
com.android.internal.telephony.Phone$SilentRedialParam
com.android.internal.telephony.Phone
+com.android.internal.telephony.PhoneConfigurationManager$$ExternalSyntheticLambda0
com.android.internal.telephony.PhoneConfigurationManager$ConfigManagerHandler
com.android.internal.telephony.PhoneConfigurationManager$MockableInterface
com.android.internal.telephony.PhoneConfigurationManager
@@ -12546,6 +12566,8 @@
com.android.internal.util.LatencyTracker$$ExternalSyntheticLambda2
com.android.internal.util.LatencyTracker$Action
com.android.internal.util.LatencyTracker$ActionProperties
+com.android.internal.util.LatencyTracker$FrameworkStatsLogEvent
+com.android.internal.util.LatencyTracker$Session$$ExternalSyntheticLambda0
com.android.internal.util.LatencyTracker$Session
com.android.internal.util.LineBreakBufferedWriter
com.android.internal.util.LocalLog
@@ -13359,7 +13381,6 @@
gov.nist.javax.sip.stack.UDPMessageChannel
gov.nist.javax.sip.stack.UDPMessageProcessor
java.nio.DirectByteBuffer
-java.util.GregorianCalendar
javax.microedition.khronos.egl.EGL10
javax.microedition.khronos.egl.EGL11
javax.microedition.khronos.egl.EGL
@@ -13816,7 +13837,6 @@
[Landroid.renderscript.Element$DataKind;
[Landroid.renderscript.Element$DataType;
[Landroid.renderscript.RenderScript$ContextType;
-[Landroid.security.KeyStore$State;
[Landroid.service.notification.NotificationListenerService$Ranking;
[Landroid.service.notification.StatusBarNotification;
[Landroid.service.notification.ZenModeConfig$ZenRule;