Index: build/android/pylib/instrumentation/json_perf_parser.py |
diff --git a/build/android/pylib/instrumentation/json_perf_parser.py b/build/android/pylib/instrumentation/json_perf_parser.py |
index ffdfbe7c548f0a4589197a20ef5f217d85d284ff..c647890ba3d8d8b4516f325ff37cfca9401429bb 100644 |
--- a/build/android/pylib/instrumentation/json_perf_parser.py |
+++ b/build/android/pylib/instrumentation/json_perf_parser.py |
@@ -65,7 +65,7 @@ def GetAverageRunInfo(json_data, name): |
def EntryFilter(entry): |
return entry['cat'] == 'Java' and entry['name'] == name |
- filtered_entries = filter(EntryFilter, json_data) |
+ filtered_entries = [j for j in json_data if EntryFilter(j)] |
result = {} |