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

Commit 8b99286f authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

Adding reasons for granting CPU_TIME capabilities

Two new bit fields within the ProcessStateRecord object to denote all
the reaons this process state may have either CPU_TIME or
IMPLICIT_CPU_TIME are added for logs.

Currently, we only use a small set of reasons that are immediately
useful for debugging. All other reasons to grant [IMPLICIT_]CPU_TIME
are bucketed into [IMPLICIT_]CPU_TIME_REASON_OTHER. Granular reasons
of interest can be split out of this bucket as needed.

Flag: com.android.server.am.cpu_time_capability_based_freeze_policy
Test: atest ServiceBindingOomAdjPolicyTest
Test: atest MockingOomAdjusterTests

Bug: 429283517
Change-Id: I17f349656c33407535119e89d1234d3564d4968a
parent f3c83c5f
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