Index: build/android/surface_stats.py |
diff --git a/build/android/surface_stats.py b/build/android/surface_stats.py |
index 9cff25c04cc761ef8590a98b3f1e6a2e93253a20..1bce6ef4ac424deee4ca947fc6953e48efefe6c4 100755 |
--- a/build/android/surface_stats.py |
+++ b/build/android/surface_stats.py |
@@ -29,7 +29,8 @@ _FIELD_FORMAT = { |
def _MergeResults(results, fields): |
merged_results = collections.defaultdict(list) |
for result in results: |
- if fields != ['all'] and not result.name in fields: |
+ if ((fields != ['all'] and not result.name in fields) or |
+ result.value is None): |
marja
2013/06/06 13:03:32
-> "or not result.value"
Sami
2013/06/06 13:10:03
See above; 0 is a valid result.value but None isn'
marja
2013/06/06 13:31:44
Ah, alright :)
|
continue |
name = '%s (%s)' % (result.name, result.unit) |
if isinstance(result.value, list): |