Index: tools/perf/perf_tools/image_decoding_benchmark.py |
=================================================================== |
--- tools/perf/perf_tools/image_decoding_benchmark.py (revision 175809) |
+++ tools/perf/perf_tools/image_decoding_benchmark.py (working copy) |
@@ -15,7 +15,7 @@ |
return tab.runtime.Evaluate('isDone') |
decode_image_events = \ |
- tab.timeline.timeline_events.GetAllOfName('DecodeImage') |
+ tab.timeline.timeline_events.GetAllOfType('DecodeImage') |
# If it is a real image benchmark, then store only the last-minIterations |
# decode tasks. |
@@ -26,9 +26,9 @@ |
min_iterations = tab.runtime.Evaluate('minIterations') |
decode_image_events = decode_image_events[-min_iterations:] |
- durations = [d.duration_ms for d in decode_image_events] |
- if not durations: |
+ elapsed_times = [d.elapsed_time for d in decode_image_events] |
+ if not elapsed_times: |
results.Add('ImageDecoding_avg', 'ms', 'unsupported') |
return |
- image_decoding_avg = sum(durations) / len(durations) |
+ image_decoding_avg = sum(elapsed_times) / len(elapsed_times) |
results.Add('ImageDecoding_avg', 'ms', image_decoding_avg) |