Index: tools/perf/benchmarks/gpu_times.py |
diff --git a/tools/perf/benchmarks/gpu_times.py b/tools/perf/benchmarks/gpu_times.py |
index 46d0db1fac703264e7c917d0e98c5db5badc3627..6f85d40f1e8605c19c3a99a3bd19bb1078445e09 100644 |
--- a/tools/perf/benchmarks/gpu_times.py |
+++ b/tools/perf/benchmarks/gpu_times.py |
@@ -1,6 +1,7 @@ |
# Copyright 2015 The Chromium Authors. All rights reserved. |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+from benchmarks import silk_flags |
from metrics import gpu_timeline |
import page_sets |
from telemetry import benchmark |
@@ -31,7 +32,36 @@ class GPUTimesKeyMobileSites(_GPUTimes): |
"""Measures GPU timeline metric on key mobile sites.""" |
page_set = page_sets.KeyMobileSitesSmoothPageSet |
+ @classmethod |
+ def Name(cls): |
+ return 'gpu_times.key_mobile_sites_smooth' |
+ |
+@benchmark.Enabled('android') |
+class GPUTimesGpuRasterizationKeyMobileSites(_GPUTimes): |
+ """Measures GPU timeline metric on key mobile sites.""" |
vmiura
2015/01/29 01:26:55
nit: comment + "with GPU rasterization"
David Yen
2015/01/29 17:17:46
Done.
|
+ page_set = page_sets.KeyMobileSitesSmoothPageSet |
+ def CustomizeBrowserOptions(self, options): |
+ silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
+ |
+ @classmethod |
+ def Name(cls): |
+ return 'gpu_times.gpu_rasterization.key_mobile_sites_smooth' |
class GPUTimesTop25Sites(_GPUTimes): |
"""Measures GPU timeline metric for the top 25 sites.""" |
page_set = page_sets.Top25SmoothPageSet |
+ |
+ @classmethod |
+ def Name(cls): |
+ return 'gpu_times.top_25_smooth' |
+ |
+class GPUTimesGpuRasterizationTop25Sites(_GPUTimes): |
+ """Measures GPU timeline metric for the top 25 sites with GPU rasterization. |
+ """ |
+ page_set = page_sets.Top25SmoothPageSet |
+ def CustomizeBrowserOptions(self, options): |
+ silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
+ |
+ @classmethod |
+ def Name(cls): |
+ return 'gpu_times.gpu_rasterization.top_25_smooth' |