From 53fd1f261ba3e907516422bd0a4bb8e766deef42 Mon Sep 17 00:00:00 2001 From: Vishal Bhoj Date: Fri, 22 Jan 2016 21:38:21 +0530 Subject: android/art-microbenchmarks: fix battery stats dump Change-Id: Idcfcf052628acd6192520c0e64ea1df9505c4431 Signed-off-by: Vishal Bhoj --- android/art-microbenchmarks.yaml | 2 ++ android/scripts/configure-nexus9-for-benchmarks.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'android') 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" -- cgit v1.2.3