Reputation: 8375
I am wondering how to change the cpu speed on the emulator so it can match with the phone specification?
If I can set to low speed, then i can see whether it works on the slower phone.
Upvotes: 6
Views: 3744
Reputation: 397
I am using cpulimit
, a Unix program. Issuing the command
cpulimit -p $PID -l $CPU_SHARE
allots to the process with PID
id CPU_SHARE
percents of CPU time. The process will not use more CPU time than is allotted even when the CPU is idle. The id of the Android emulator (AVD) process can be seen with pidof qemu-system-i386
for an x86 Android image and pidof qemu-system-x86_64
for an x86_64 one. The program's manual can be seen with cpulimit --help
.
Upvotes: 3