summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2016-01-22 21:38:21 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2016-01-22 21:42:03 +0530
commit53fd1f261ba3e907516422bd0a4bb8e766deef42 (patch)
tree55c84d9e2bcbace09d6565624d67877fee58a707 /android
parentb74f2d6bd67d7f9fbb886a4ddc1eda0850d813e8 (diff)
android/art-microbenchmarks: fix battery stats dump
Change-Id: Idcfcf052628acd6192520c0e64ea1df9505c4431 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Diffstat (limited to 'android')
-rw-r--r--android/art-microbenchmarks.yaml2
-rwxr-xr-xandroid/scripts/configure-nexus9-for-benchmarks.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/android/art-microbenchmarks.yaml b/android/art-microbenchmarks.yaml
index a3a7112..143bf37 100644
--- a/android/art-microbenchmarks.yaml
+++ b/android/art-microbenchmarks.yaml
@@ -43,6 +43,8 @@ run:
- echo "processes running"
- ps
- fi
+ - adb -s $IPADDR shell start
+ - sleep 30
- adb -s $IPADDR shell dumpsys battery
- lava-sync $TEST_NAME-finished
diff --git a/android/scripts/configure-nexus9-for-benchmarks.sh b/android/scripts/configure-nexus9-for-benchmarks.sh
index f936009..d7de59c 100755
--- a/android/scripts/configure-nexus9-for-benchmarks.sh
+++ b/android/scripts/configure-nexus9-for-benchmarks.sh
@@ -2,8 +2,8 @@
set -x
echo "configuring Nexus9 on: $IPADDR"
adb -s $IPADDR wait-for-device
-adb -s $IPADDR shell stop
adb -s $IPADDR shell dumpsys battery
+adb -s $IPADDR shell stop
adb -s $IPADDR shell "echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
sleep 2
adb -s $IPADDR shell "echo 1224000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq"