1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-10-30 06:34:13 +00:00

FPS - fix regex and handle empty frames

This commit is contained in:
Michael McGeagh
2016-11-07 17:39:51 +00:00
parent f99c6f5656
commit dcf13f8c2c
2 changed files with 7 additions and 6 deletions

View File

@@ -277,7 +277,7 @@ class LatencyCollector(threading.Thread):
else:
self.header = GfxInfoFrame._fields
self.process_trace_line = self._process_gfxinfo_line
self.re_frame = re.compile('[0-9,]+')
self.re_frame = re.compile('([0-9]+,)+')
self.re_stats = re.compile('.*(percentile|frames|Number).*')
# Create a template summary text block that matches what gfxinfo gives after a reset
# - 133 is the default ms value for percentiles after reset