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

Workload/Manual: Adds package parameter to workload

Adds the `package` parameter to allow the workload to be used
with the gfxinfo method of collecting data for the FPS instrument.
This commit is contained in:
Marc Bonnici 2017-08-14 15:45:52 +01:00
parent 58a8ea9051
commit 10a614ff04

View File

@ -29,11 +29,13 @@ class ManualWorkloadConfig(object):
duration=None, # Seconds
user_triggered=None,
view=None,
package=None,
enable_logcat=True
):
self.user_triggered = user_triggered if user_triggered is not None else (False if duration else True)
self.duration = duration or (None if self.user_triggered else self.default_duration)
self.view = view
self.package = package
self.enable_logcat = enable_logcat
@ -58,6 +60,12 @@ class ManualWorkload(Workload):
Parameter('view', default='SurfaceView',
description="""Specifies the View of the workload. This enables instruments that require a
View to be specified, such as the ``fps`` instrument."""),
Parameter('package',
description="""Specifies the package name of the workload. This enables
instruments that require a Package to be specified, such
as the ``fps`` instrument. This allows for "gfxinfo" to
be used and is the preferred method of collection for FPS
statistics on devices API level 23+"""),
Parameter('enable_logcat', kind=boolean,
description='If ``True``, ``manual`` workload will collect logcat as part of the results.'),
]