1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-10-29 22:24:51 +00:00

wa/workloads: Change to use 'loops' parameter.

Change to consistently use 'loops' parameter instead of 'iterations'
etc.
This commit is contained in:
Marc Bonnici
2018-05-11 13:48:13 +01:00
committed by setrofim
parent 8d7d32d180
commit 6f5fca36df
6 changed files with 19 additions and 18 deletions

View File

@@ -69,7 +69,7 @@ class Jankbench(ApkWorkload):
Parameter('test_ids', kind=list_or_string,
allowed_values=valid_test_ids,
description='ID of the jankbench test to be run.'),
Parameter('reps', kind=int, default=1, constraint=lambda x: x > 0,
Parameter('loops', kind=int, default=1, constraint=lambda x: x > 0, aliases=['reps'],
description='''
Specifies the number of times the benchmark will be run in a "tight loop",
i.e. without performaing setup/teardown inbetween.
@@ -188,8 +188,8 @@ class Jankbench(ApkWorkload):
if self.test_ids:
test_idxs = [str(self.valid_test_ids.index(i)) for i in self.test_ids]
command_params.append('--eia com.android.benchmark.EXTRA_ENABLED_BENCHMARK_IDS {}'.format(','.join(test_idxs)))
if self.reps:
command_params.append('--ei com.android.benchmark.EXTRA_RUN_COUNT {}'.format(self.reps))
if self.loops:
command_params.append('--ei com.android.benchmark.EXTRA_RUN_COUNT {}'.format(self.loops))
return 'am start -W -S -n {}/{} {}'.format(self.package,
self.activity,
' '.join(command_params))