mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-29 22:24:51 +00:00 
			
		
		
		
	Initial commit of open source Workload Automation.
This commit is contained in:
		
							
								
								
									
										27
									
								
								wlauto/commands/templates/android_benchmark
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								wlauto/commands/templates/android_benchmark
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| from wlauto import AndroidBenchmark, Parameter | ||||
|  | ||||
|  | ||||
| class ${class_name}(AndroidBenchmark): | ||||
|  | ||||
|     name = '${name}' | ||||
|     # NOTE: Please do not leave these comments in the code. | ||||
|     # | ||||
|     # Replace with the package for the app in the APK file. | ||||
|     package = 'com.foo.bar' | ||||
|     # Replace with the full path to the activity to run. | ||||
|     activity = '.RunBuzz' | ||||
|     description = "This is an placeholder description" | ||||
|  | ||||
|     parameters = [ | ||||
|         # Workload parameters go here e.g. | ||||
|         Parameter('Example parameter', kind=int, allowed_values=[1,2,3], default=1, override=True, mandatory=False, | ||||
|                   description='This is an example parameter') | ||||
|     ] | ||||
|  | ||||
|     def run(self, context): | ||||
|         pass | ||||
|  | ||||
|     def update_result(self, context): | ||||
|         super(${class_name}, self).update_result(context) | ||||
|         # process results and add them using | ||||
|         # context.result.add_metric | ||||
		Reference in New Issue
	
	Block a user