mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 04:21:17 +00: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:
parent
ae1a5019dc
commit
2702731532
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user