Mode Performa Tetap
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Dirilis: Android 11 (level API 30)
Perangkat Android dapat mengubah pengaturan clock secara dinamis berdasarkan beban sistem. Perilaku ini
bagus untuk menghemat daya selama penggunaan, tetapi dapat menyulitkan saat ingin mendapatkan
data performa yang andal. Jika Anda mencoba menentukan seberapa cepat
fragmen kode dapat berjalan untuk mencegah regresi, atau jika pengoptimalan dapat diulang,
hasil Anda tidak akan dapat diandalkan jika tidak diuji pada kecepatan clock tetap. Dengan
clock tetap, Anda dapat melakukan pengujian A/B yang akurat terhadap performa tanpa mengubah
frekuensi CPU yang menjadi faktornya.
Mode performa tetap menyetel clock CPU dan GPU dengan batas atas dan bawah.
Mode ini tidak menonaktifkan perilaku performa dinamis lainnya, seperti pemilihan
core.
Anda dapat mengaktifkan mode performa tetap dengan perintah adb berikut:
adb shell cmd power set-fixed-performance-mode-enabled [true|false]
Perangkat yang berjalan dalam mode performa masih bisa mengalami panas berlebih karena
mode tersebut tidak mengubah status perangkat menjadi berkelanjutan secara termal. Oleh karenanya,
kami merekomendasikan hal berikut untuk menjalankan benchmark:
- Tunggu hingga perangkat kembali ke kondisi termal yang berkelanjutan sebelum memulai
berlari.
- Pantau status termal perangkat selama pengujian untuk membedakan
dampak antara kode benchmark dan peristiwa termal.
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-26 UTC."],[],[],null,["# Fixed Performance Mode\n\n**Released**: Android 11 (API level 30)\n\nAndroid devices can change clocking dynamically based on the system load. This\nbehavior is good for power savings during use, but can make it difficult to get\nreliable performance data. If you are trying to determine how fast a code\nfragment can run for regression prevention, or if an optimization is repeatable,\nyour results won't be reliable if they aren't tested at fixed clock speeds. With\nfixed clocks, you can do accurate A/B testing of performance without changes in\nthe CPU frequency being a factor.\n\nFixed-performance mode sets CPU and GPU clocks with an upper and lower bound.\nThis mode does not disable other dynamic performance behaviors, such as core\nselection.\n\nYou can enable fixed-performance mode with the following adb command: \n\n adb shell cmd power set-fixed-performance-mode-enabled [true|false]\n\nA device that is running in fixed-performance mode can still overheat because\nthe mode doesn't put the device into a thermally-sustainable state. Because of\nthis, we recommend the following for benchmark runs:\n\n- Wait for the device to return to a thermally-sustainable state before starting the run.\n- Monitor the thermal state of the device during testing to differentiate the impact between the benchmark code and thermal events."]]