mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-06-18 22:36:01 +01:00
fps: Ignore additional fields in gfxinfo frame data
Some versions of Android include additional fields in gfinxo which we don't care about. The existing fields have the same order, so simply ignore the extra ones.
This commit is contained in:
@ -392,6 +392,8 @@ class LatencyCollector(threading.Thread):
|
||||
if match:
|
||||
data = match.group(0)[:-1]
|
||||
data = map(int, data.split(','))
|
||||
# Ignore additional fields
|
||||
data = data[:len(self.header)]
|
||||
frame = GfxInfoFrame(*data)
|
||||
if frame not in self.frames:
|
||||
if frame.Flags & GFXINFO_EXEMPT:
|
||||
|
Reference in New Issue
Block a user