| Index: tools/perf/perf_tools/smoothness_benchmark.py
|
| diff --git a/tools/perf/perf_tools/smoothness_benchmark.py b/tools/perf/perf_tools/smoothness_benchmark.py
|
| old mode 100644
|
| new mode 100755
|
| index 96d393cdf2c30fa1c4957917c24869c3e6d83d31..b6398d367c4cff93be76dc0cd43ce892a6aa5022
|
| --- a/tools/perf/perf_tools/smoothness_benchmark.py
|
| +++ b/tools/perf/perf_tools/smoothness_benchmark.py
|
| @@ -112,6 +112,33 @@ def CalcFirstPaintTimeResults(results, tab):
|
|
|
| results.Add('first_paint', 'ms', round(first_paint_secs * 1000, 1))
|
|
|
| +def CalcImageDecodingResults(rendering_stats_deltas, results):
|
| + totalDeferredImageDecodeCount = rendering_stats_deltas.get(
|
| + 'totalDeferredImageDecodeCount', 0)
|
| + totalDeferredImageCacheHitCount = rendering_stats_deltas.get(
|
| + 'totalDeferredImageCacheHitCount', 0)
|
| + totalGatheringCount = rendering_stats_deltas.get(
|
| + 'totalPixelGatheringCount', 0)
|
| + totalDeferredImageDecodeTimeInSeconds = rendering_stats_deltas.get(
|
| + 'totalDeferredImageDecodeTimeInSeconds', 0)
|
| + totalGatheringTimeInSeconds = rendering_stats_deltas.get(
|
| + 'totalPixelGatheringTimeInSeconds', 0)
|
| +
|
| + averagePixelGatheringTime = DivideIfPossibleOrZero(
|
| + (totalGatheringTimeInSeconds * 1000), totalGatheringCount)
|
| +
|
| + results.Add('total_deferred_image_decode_count', 'count',
|
| + totalDeferredImageDecodeCount,
|
| + data_type='unimportant')
|
| + results.Add('total_image_cache_hit_count', 'count',
|
| + totalDeferredImageCacheHitCount,
|
| + data_type='unimportant')
|
| + results.Add('average_pixel_gathering_time', 'ms', averagePixelGatheringTime,
|
| + data_type='unimportant')
|
| + results.Add('total_deferred_image_decoding_time', 'seconds',
|
| + totalDeferredImageDecodeTimeInSeconds,
|
| + data_type='unimportant')
|
| +
|
| class SmoothnessBenchmark(multi_page_benchmark.MultiPageBenchmark):
|
| def __init__(self):
|
| super(SmoothnessBenchmark, self).__init__('scrolling')
|
| @@ -143,6 +170,7 @@ class SmoothnessBenchmark(multi_page_benchmark.MultiPageBenchmark):
|
| CalcScrollResults(rendering_stats_deltas, results)
|
| CalcPaintingResults(rendering_stats_deltas, results)
|
| CalcTextureUploadResults(rendering_stats_deltas, results)
|
| + CalcImageDecodingResults(rendering_stats_deltas, results)
|
|
|
| if self.options.report_all_results:
|
| for k, v in rendering_stats_deltas.iteritems():
|
|
|