Merge "STT: Add encoding option to read trace files" am: 3414060631
Original change: https://android-review.googlesource.com/c/platform/development/+/2625884 Change-Id: I2b7cdc93eb3f3acc9a8b130fb248ba681927636d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -35,7 +35,7 @@ class Trace:
|
||||
self.target = os.path.splitext(os.path.basename(trace_file))[0]
|
||||
if not os.path.isfile(trace_file):
|
||||
return
|
||||
self._trace_file = gzip.open(trace_file, 'r')
|
||||
self._trace_file = gzip.open(trace_file, 'rt', encoding='utf-8')
|
||||
self._trace_data = json.load(self._trace_file)
|
||||
for t in self._trace_data:
|
||||
if 'ph' not in t:
|
||||
|
||||
Reference in New Issue
Block a user