diff --git a/android/pylib/json_perf_parser.py b/android/pylib/json_perf_parser.py index 88ca3e0d8..1a8e61753 100644 --- a/android/pylib/json_perf_parser.py +++ b/android/pylib/json_perf_parser.py @@ -16,12 +16,12 @@ def GetAverageRunInfo(json_data, name): [ { "cat": "Java", "ts": 10000000000, - "ph": "B", + "ph": "S", "name": "TestTrace" }, { "cat": "Java", "ts": 10000004000, - "ph": "E", + "ph": "F", "name": "TestTrace" }, ... @@ -106,11 +106,11 @@ def GetAverageRunInfo(json_data, name): raise Exception('Entry did not contain expected value type "%s" ' 'information: %s' % (val_type, entry)) val = GetVal(entry) - if (entry['ph'] == 'B' and + if (entry['ph'] == 'S' and (result['type'] == 'Unknown' or result['type'] == 'Span')): result['type'] = 'Span' last_val = val - elif ((entry['ph'] == 'E' and result['type'] == 'Span') or + elif ((entry['ph'] == 'F' and result['type'] == 'Span') or (entry['ph'] == 'I' and (result['type'] == 'Unknown' or result['type'] == 'Instant'))): if last_val > 0: