Merge "STT: Add encoding option to read trace files" am: 3414060631 am: a11da8e971 am: 6a5c46514c
Original change: https://android-review.googlesource.com/c/platform/development/+/2625884 Change-Id: Id0598d702867be7a96351a80b6444a7bc77ae837 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