Index: build/android/pylib/json_perf_parser.py |
diff --git a/build/android/pylib/json_perf_parser.py b/build/android/pylib/json_perf_parser.py |
index 88ca3e0d80cdc6701ed6a02a7091c6db60bb6a0d..1a8e617539c2d9c5332a218e78d25134b77fa458 100644 |
--- a/build/android/pylib/json_perf_parser.py |
+++ b/build/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: |