summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2016-01-22 16:47:25 +0530
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2016-01-22 11:22:40 +0000
commitfd1071a40301d5c6ae21f86609f319994ba972bb (patch)
tree1b4e9c1b3aa0b084fcc1851447e58d335518a3a5 /android
parent85aed83f422d1f35b3f37aeafa54e09cec93db5f (diff)
android/art-microbenchmarks: dump battery status before and after tests
Change-Id: I344cb8bef2a4d4641cfe2871bb70044a0d26637b Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Diffstat (limited to 'android')
-rw-r--r--android/art-microbenchmarks.yaml1
-rwxr-xr-xandroid/scripts/configure-nexus9-for-benchmarks.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/android/art-microbenchmarks.yaml b/android/art-microbenchmarks.yaml
index 4f5e5f3..a3a7112 100644
--- a/android/art-microbenchmarks.yaml
+++ b/android/art-microbenchmarks.yaml
@@ -43,5 +43,6 @@ run:
- echo "processes running"
- ps
- fi
+ - 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 802722f..f936009 100755
--- a/android/scripts/configure-nexus9-for-benchmarks.sh
+++ b/android/scripts/configure-nexus9-for-benchmarks.sh
@@ -3,6 +3,7 @@ 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 "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"