Skip to content

ADFA-2784: add Gradle build tuner#973

Draft
itsaky-adfa wants to merge 9 commits intostagefrom
feat/ADFA-2784
Draft

ADFA-2784: add Gradle build tuner#973
itsaky-adfa wants to merge 9 commits intostagefrom
feat/ADFA-2784

Conversation

@itsaky-adfa
Copy link
Contributor

@itsaky-adfa itsaky-adfa commented Feb 12, 2026

See ADFA-2784 for more details.

Signed-off-by: Akash Yadav <akashyadav@appdevforall.org>
@itsaky-adfa itsaky-adfa self-assigned this Feb 12, 2026
@jomen-adfa
Copy link
Contributor

jomen-adfa commented Feb 13, 2026

Maybe serializing the garbage collection in low memory situations would help?

@itsaky-adfa
Copy link
Contributor Author

@jomen-adfa You mean using -XX:+UseSerialGC, right?

@jomen-adfa
Copy link
Contributor

Yes, that's right.

Signed-off-by: Akash Yadav <akashyadav@appdevforall.org>
Signed-off-by: Akash Yadav <akashyadav@appdevforall.org>
For CPU topology :
  1. Try to determine clusters using cpufreq policy directories:
     this is probably the most reliable option to determine the CPU topology
     and maps 1:1 on to a core cluster on heterogeneous SoCs.
  2. Read max frequency of each CPU: group CPUs based on their
     maximum frequency, sort them in ascending order. CPUs with
     minimum frequency become the little CPUs, and the same
     with max frequency become the prime CPUs, while the rest
     become big CPUs.
  3. Fall back to symmetric grouping. The number of available CPUs
     become big CPUs, while little and prime CPUs are 0.

For thermal state:
  1. On Android 29+: use PowerManager.getCurrentThermalStatus()
  2. On Android 28: read /sys/class/thermal/thermal_zone*/{temp, trip_point_N_temp}
     and compare `temp` with `trip_point_N_temp` to determine whether the given
     thermal zone is thermal-throttled or not.

Signed-off-by: Akash Yadav <akashyadav@appdevforall.org>
…ture

Signed-off-by: Akash Yadav <akashyadav@appdevforall.org>
Signed-off-by: Akash Yadav <akashyadav@appdevforall.org>
Signed-off-by: Akash Yadav <akashyadav@appdevforall.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants