1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 02:41:11 +01:00

framework/workload: add markers_enabled param for uiauto workloads

Some workloads can insert timestamped markers into the logs if this
parameter is enabled in their automation. These markers can then be
used to look at measurements for specific parts of the execution.
This commit is contained in:
Sergei Trofimov 2017-11-21 16:45:29 +00:00 committed by marcbonnici
parent 73a530917a
commit 49eb40fec7

View File

@ -305,12 +305,24 @@ class ApkUiautoWorkload(ApkUIWorkload):
platform = 'android'
parameters = [
Parameter('markers_enabled', kind=bool, default=False,
description="""
If set to ``True``, workloads will insert markers into logs
at various points during execution. These markes may be used
by other plugins or post-processing scripts to provide
measurments or statistics for specific parts of the workload
execution.
"""),
]
def __init__(self, target, **kwargs):
super(ApkUiautoWorkload, self).__init__(target, **kwargs)
self.gui = UiAutomatorGUI(self)
def setup(self, context):
self.gui.uiauto_params['package_name'] = self.apk.apk_info.package
self.gui.uiauto_params['markers_enabled'] = self.markers_enabled
self.gui.init_commands()
super(ApkUiautoWorkload, self).setup(context)