mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 07:04:17 +00:00 
			
		
		
		
	instrumentation/fps: Fix spaces in SurfaceFlinger.
When parsing the SurfaceFlinger list output spaces were used as separators. Some view names have spaces enclosed. This would lead to views with spaces in their names not being correctly detected and as a consequence the fps stats not collected.
This commit is contained in:
		
				
					committed by
					
						 Marc Bonnici
						Marc Bonnici
					
				
			
			
				
	
			
			
			
						parent
						
							0995e57689
						
					
				
				
					commit
					9a9e8395cf
				
			| @@ -317,7 +317,7 @@ class LatencyCollector(threading.Thread): | |||||||
|                     # Then check for each activity in this list and if there is a match, |                     # Then check for each activity in this list and if there is a match, | ||||||
|                     # process the output. If no command is provided, then always process. |                     # process the output. If no command is provided, then always process. | ||||||
|                     if self.list_command: |                     if self.list_command: | ||||||
|                         view_list = self.device.execute(self.list_command).split() |                         view_list = self.device.execute(self.list_command).replace('\r\n', '\n').replace('\r', '\n').split('\n') | ||||||
|                     for activity in self.activities: |                     for activity in self.activities: | ||||||
|                         if activity in view_list: |                         if activity in view_list: | ||||||
|                             wfh.write(self.device.execute(self.command_template.format(activity))) |                             wfh.write(self.device.execute(self.command_template.format(activity))) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user