1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 10:10:46 +00:00

utils/rendering: Fix compatibility with Python3

Ensure output is encoded before attempting to write to file.
This commit is contained in:
Marc Bonnici 2019-01-09 11:10:40 +00:00
parent a4c22cef71
commit aabb74c8cb

View File

@ -133,7 +133,7 @@ class SurfaceFlingerFrameCollector(FrameCollector):
def collect_frames(self, wfh): def collect_frames(self, wfh):
for activity in self.list(): for activity in self.list():
if activity == self.view: if activity == self.view:
wfh.write(self.get_latencies(activity)) wfh.write(self.get_latencies(activity).encode('utf-8'))
def clear(self): def clear(self):
self.target.execute('dumpsys SurfaceFlinger --latency-clear ') self.target.execute('dumpsys SurfaceFlinger --latency-clear ')