OLD | NEW |
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 os | 8 import os |
9 import re | 9 import re |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 """Basic Google Maps benchmarks.""" | 45 """Basic Google Maps benchmarks.""" |
46 test = _MapsMeasurement | 46 test = _MapsMeasurement |
47 | 47 |
48 def CreatePageSet(self, options): | 48 def CreatePageSet(self, options): |
49 page_set_path = os.path.join( | 49 page_set_path = os.path.join( |
50 util.GetChromiumSrcDir(), 'tools', 'perf', 'page_sets') | 50 util.GetChromiumSrcDir(), 'tools', 'perf', 'page_sets') |
51 ps = page_set_module.PageSet( | 51 ps = page_set_module.PageSet( |
52 archive_data_file='data/maps.json', | 52 archive_data_file='data/maps.json', |
53 make_javascript_deterministic=False, | 53 make_javascript_deterministic=False, |
54 file_path=page_set_path) | 54 file_path=page_set_path) |
55 ps.AddPage(MapsPage(ps, ps.base_dir)) | 55 ps.AddUserStory(MapsPage(ps, ps.base_dir)) |
56 return ps | 56 return ps |
57 | 57 |
58 class MapsNoVsync(MapsBenchmark): | 58 class MapsNoVsync(MapsBenchmark): |
59 """Runs the Google Maps benchmark with Vsync disabled""" | 59 """Runs the Google Maps benchmark with Vsync disabled""" |
60 tag = 'novsync' | 60 tag = 'novsync' |
61 | 61 |
62 def CustomizeBrowserOptions(self, options): | 62 def CustomizeBrowserOptions(self, options): |
63 options.AppendExtraBrowserArgs('--disable-gpu-vsync') | 63 options.AppendExtraBrowserArgs('--disable-gpu-vsync') |
OLD | NEW |