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

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

Issue 1428133005: [Telemetry] Allows concatenating multiple Disabled & Enabled decorators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Dave's comment Created 5 years, 1 month 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
« no previous file with comments | « tools/perf/benchmarks/gpu_times.py ('k') | tools/perf/benchmarks/media.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 4
5 """Runs a Google Maps performance test. 5 """Runs a Google Maps performance test.
6 Rerforms several common navigation actions on the map (pan, zoom, rotate)""" 6 Rerforms several common navigation actions on the map (pan, zoom, rotate)"""
7 7
8 import re 8 import re
9 9
10 from core import path_util 10 from core import path_util
(...skipping 27 matching lines...) Expand all
38 url='http://localhost:10020/tracker.html', 38 url='http://localhost:10020/tracker.html',
39 page_set=page_set, 39 page_set=page_set,
40 base_dir=base_dir, 40 base_dir=base_dir,
41 make_javascript_deterministic=False) 41 make_javascript_deterministic=False)
42 42
43 def RunNavigateSteps(self, action_runner): 43 def RunNavigateSteps(self, action_runner):
44 super(MapsPage, self).RunNavigateSteps(action_runner) 44 super(MapsPage, self).RunNavigateSteps(action_runner)
45 action_runner.WaitForJavaScriptCondition('window.testDone') 45 action_runner.WaitForJavaScriptCondition('window.testDone')
46 46
47 47
48 @benchmark.Disabled 48 @benchmark.Disabled('all')
49 class MapsBenchmark(perf_benchmark.PerfBenchmark): 49 class MapsBenchmark(perf_benchmark.PerfBenchmark):
50 """Basic Google Maps benchmarks.""" 50 """Basic Google Maps benchmarks."""
51 test = _MapsMeasurement 51 test = _MapsMeasurement
52 52
53 @classmethod 53 @classmethod
54 def Name(cls): 54 def Name(cls):
55 return 'maps' 55 return 'maps'
56 56
57 def CreateStorySet(self, options): 57 def CreateStorySet(self, options):
58 ps = story.StorySet(archive_data_file='data/maps.json', 58 ps = story.StorySet(archive_data_file='data/maps.json',
59 base_dir=path_util.GetStorySetsDir(), 59 base_dir=path_util.GetStorySetsDir(),
60 cloud_storage_bucket=story.PUBLIC_BUCKET) 60 cloud_storage_bucket=story.PUBLIC_BUCKET)
61 ps.AddStory(MapsPage(ps, ps.base_dir)) 61 ps.AddStory(MapsPage(ps, ps.base_dir))
62 return ps 62 return ps
63 63
64 class MapsNoVsync(MapsBenchmark): 64 class MapsNoVsync(MapsBenchmark):
65 """Runs the Google Maps benchmark with Vsync disabled""" 65 """Runs the Google Maps benchmark with Vsync disabled"""
66 tag = 'novsync' 66 tag = 'novsync'
67 67
68 @classmethod 68 @classmethod
69 def Name(cls): 69 def Name(cls):
70 return 'maps.novsync' 70 return 'maps.novsync'
71 71
72 def SetExtraBrowserOptions(self, options): 72 def SetExtraBrowserOptions(self, options):
73 options.AppendExtraBrowserArgs('--disable-gpu-vsync') 73 options.AppendExtraBrowserArgs('--disable-gpu-vsync')
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/gpu_times.py ('k') | tools/perf/benchmarks/media.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698