feat(perf): disable wake lock and cpu freq scaling on android

This commit is contained in:
Tobias Bosch
2015-01-20 16:29:50 -08:00
parent 8a8a4b2ae7
commit 8b2a5d7d17
4 changed files with 54 additions and 1 deletions
+6 -1
View File
@@ -1,10 +1,15 @@
#!/bin/bash
set -e
SCRIPT_DIR=$(dirname $0)
cd $SCRIPT_DIR
if [[ $PERF_BROWSERS =~ .*Android.* || $E2E_BROWSERS =~ .*Android.* ]]
then
adb usb
adb root usb
adb wait-for-device devices
adb reverse tcp:8001 tcp:8001
adb reverse tcp:8002 tcp:8002
./android_cpu.sh performance
./android_cpu.sh wakelock
fi