Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions wa/workloads/antutu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import time

from wa import ApkUiautoWorkload, ApkWorkload, WorkloadError, Parameter, ApkFile, File
from wa.utils.android import ApkInfo


class Antutu(ApkUiautoWorkload):
Expand Down Expand Up @@ -173,6 +174,10 @@ def extract_scores(self, context, regex_version):
overall_result = float(cpu_result + gpu_result + ux_result + mem_result)
context.add_metric('Overall Score', overall_result, lower_is_better=False)

# Get the APK version
version_name = self.apk.apk_info.version_name
context.add_metadata("apk_version", version_name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This information should be automatically included for all APK workloads under the app_version entry in the workload metadata [1].
Are you not seeing this being added to you output?

[1]

context.update_metadata('app_version', self.apk_info.version_name)


def update_output(self, context):
super(Antutu, self).update_output(context)
if self.version.startswith('10'):
Expand Down