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

Side by Side Diff: tools/perf/benchmarks/gpu_times.py

Issue 926833002: [Telemetry] Move gpu_timeline metrics to telemetry.web_perf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 from benchmarks import silk_flags 4 from benchmarks import silk_flags
5 from metrics import gpu_timeline
6 import page_sets 5 import page_sets
7 from telemetry import benchmark 6 from telemetry import benchmark
8 from telemetry.core.platform import tracing_category_filter 7 from telemetry.core.platform import tracing_category_filter
9 from telemetry.web_perf import timeline_based_measurement 8 from telemetry.web_perf import timeline_based_measurement
9 from telemetry.web_perf.metrics import gpu_timeline
10 10
11 TOPLEVEL_GL_CATEGORY = 'gpu_toplevel' 11 TOPLEVEL_GL_CATEGORY = 'gpu_toplevel'
12 TOPLEVEL_CATEGORIES = ['disabled-by-default-gpu.device', 12 TOPLEVEL_CATEGORIES = ['disabled-by-default-gpu.device',
13 'disabled-by-default-gpu.service'] 13 'disabled-by-default-gpu.service']
14 14
15 15
16 def _GetGPUTimelineMetric(_): 16 def _GetGPUTimelineMetric(_):
17 return [gpu_timeline.GPUTimelineMetric()] 17 return [gpu_timeline.GPUTimelineMetric()]
18 18
19 19
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 class GPUTimesGpuRasterizationTop25Sites(_GPUTimes): 61 class GPUTimesGpuRasterizationTop25Sites(_GPUTimes):
62 """Measures GPU timeline metric for the top 25 sites with GPU rasterization. 62 """Measures GPU timeline metric for the top 25 sites with GPU rasterization.
63 """ 63 """
64 page_set = page_sets.Top25SmoothPageSet 64 page_set = page_sets.Top25SmoothPageSet
65 def CustomizeBrowserOptions(self, options): 65 def CustomizeBrowserOptions(self, options):
66 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) 66 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options)
67 67
68 @classmethod 68 @classmethod
69 def Name(cls): 69 def Name(cls):
70 return 'gpu_times.gpu_rasterization.top_25_smooth' 70 return 'gpu_times.gpu_rasterization.top_25_smooth'
OLDNEW
« no previous file with comments | « tools/chrome_proxy/integration_tests/network_metrics_unittest.py ('k') | tools/perf/metrics/gpu_timeline.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698