2015-01-08 17:20:05 -05:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
2015-01-20 19:29:50 -05:00
|
|
|
SCRIPT_DIR=$(dirname $0)
|
|
|
|
cd $SCRIPT_DIR
|
2015-01-08 17:20:05 -05:00
|
|
|
|
|
|
|
if [[ $PERF_BROWSERS =~ .*Android.* || $E2E_BROWSERS =~ .*Android.* ]]
|
|
|
|
then
|
2015-01-20 19:29:50 -05:00
|
|
|
adb root usb
|
2015-01-08 17:20:05 -05:00
|
|
|
adb wait-for-device devices
|
|
|
|
adb reverse tcp:8001 tcp:8001
|
|
|
|
adb reverse tcp:8002 tcp:8002
|
2015-01-20 19:29:50 -05:00
|
|
|
|
|
|
|
./android_cpu.sh performance
|
|
|
|
./android_cpu.sh wakelock
|
2015-01-08 17:20:05 -05:00
|
|
|
fi
|