Loading
Get ART optimization info from the app process.
System server reports app startup metrics along with ART optimization info. Before this change, this information is computed by system server itself, by using OatFileAssistant to check the optimization status of the files on disk, through a JNI call. After this change, this informaition is obtained from the app process. During the initialization of the app process, the process makes a binder call, to pass its optimization info to ActivityManagerService (AMS). AMS then records this information in ProcessRecord's WindowProcessController. During metrics reporting, Window Manager (WM) retrives this information from WindowProcessController. Bug: 422941949 Test: Start an app and see stats logged to statsd_testdrive. Flag: android.app.get_optimization_info_from_app_process Change-Id: Ia59788ef889ad7d67e4067ae6e6ac2bc1bef3bfd