Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21bc03d9 authored by Jiakai Zhang's avatar Jiakai Zhang
Browse files

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
parent c2f7c341
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment