summaryrefslogtreecommitdiff
path: root/binder_benchmark
diff options
context:
space:
mode:
authorKeun Soo Yim <yim@google.com>2016-12-12 14:44:53 -0800
committerKeun Soo Yim <yim@google.com>2016-12-27 20:47:34 +0000
commit58f09f691735a3ea7917f4aae545e99d98005deb (patch)
tree8cb24415ec385bb6700f2a21794c2c70c508eb83 /binder_benchmark
parentead14104dd457712ecabb8e48255e12c44e41e99 (diff)
downloadperformance-58f09f691735a3ea7917f4aae545e99d98005deb.tar.gz
stop/start the framework before/after running (hw)binder performance tests
Test: make vts BUILD_GOOGLE_VTS=true -j32 && vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module HwBinderPassthroughPerformanceTest -l INFO Fixes: 33749565 Change-Id: I8b6df64728059dd4fe412dbf5de0e74a69aba40b
Diffstat (limited to 'binder_benchmark')
-rw-r--r--binder_benchmark/BinderPerformanceTest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/binder_benchmark/BinderPerformanceTest.py b/binder_benchmark/BinderPerformanceTest.py
index 2be4a53..4c1cec0 100644
--- a/binder_benchmark/BinderPerformanceTest.py
+++ b/binder_benchmark/BinderPerformanceTest.py
@@ -68,10 +68,14 @@ class BinderPerformanceTest(base_test_with_webdb.BaseTestWithWebDbClass):
def setUpClass(self):
self.dut = self.registerController(android_device)[0]
self.dut.shell.InvokeTerminal("one")
+ self.dut.shell.one.Execute("stop")
+ self.dut.shell.one.Execute("setprop sys.boot_completed 0")
self.DisableCpuScaling()
def tearDownClass(self):
self.EnableCpuScaling()
+ self.dut.shell.one.Execute("start")
+ self.dut.shell.one.waitForBootCompletion()
def ChangeCpuGoverner(self, mode):
"""Changes the cpu governer mode of all the cpus on the device.