From 766b96e2add6c629977773a6ddb936e1bfb355f0 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Thu, 10 Jan 2019 14:35:08 +0000 Subject: [PATCH] fw/workload: Add a 'View' parameter to ApkWorkloads Allow for easy configuring of a view for a particular workload as this can vary depending on the device which can be used when using certain instruments for example `fps`. --- wa/framework/workload.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wa/framework/workload.py b/wa/framework/workload.py index 954f3fed..f5d0e135 100644 --- a/wa/framework/workload.py +++ b/wa/framework/workload.py @@ -235,6 +235,12 @@ class ApkWorkload(Workload): will fall back to the version on the target if available. If ``False`` then the version on the target is preferred instead. """), + Parameter('view', kind=str, default=None, merge=True, + description=""" + Manually override the 'View' of the workload for use with + instruments such as the ``fps`` instrument. If not specified, + a workload dependant 'View' will be automatically generated. + """), ] @property