Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: tools/perf/benchmarks/gpu_times.py

Issue 875473003: Standardize "gpu_times" metric names and add GPU rasterization versions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698