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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 @benchmark.Disabled | 49 @benchmark.Disabled |
50 class MapsBenchmark(perf_benchmark.PerfBenchmark): | 50 class MapsBenchmark(perf_benchmark.PerfBenchmark): |
51 """Basic Google Maps benchmarks.""" | 51 """Basic Google Maps benchmarks.""" |
52 test = _MapsMeasurement | 52 test = _MapsMeasurement |
53 | 53 |
54 @classmethod | 54 @classmethod |
55 def Name(cls): | 55 def Name(cls): |
56 return 'maps' | 56 return 'maps' |
57 | 57 |
58 def CreatePageSet(self, options): | 58 def CreateStorySet(self, options): |
59 page_set_path = os.path.join( | 59 page_set_path = os.path.join( |
60 util.GetChromiumSrcDir(), 'tools', 'perf', 'page_sets') | 60 util.GetChromiumSrcDir(), 'tools', 'perf', 'page_sets') |
61 ps = page_set_module.PageSet( | 61 ps = page_set_module.PageSet( |
62 archive_data_file='data/maps.json', base_dir=page_set_path, | 62 archive_data_file='data/maps.json', base_dir=page_set_path, |
63 bucket=page_set_module.PUBLIC_BUCKET) | 63 bucket=page_set_module.PUBLIC_BUCKET) |
64 ps.AddUserStory(MapsPage(ps, ps.base_dir)) | 64 ps.AddUserStory(MapsPage(ps, ps.base_dir)) |
65 return ps | 65 return ps |
66 | 66 |
67 class MapsNoVsync(MapsBenchmark): | 67 class MapsNoVsync(MapsBenchmark): |
68 """Runs the Google Maps benchmark with Vsync disabled""" | 68 """Runs the Google Maps benchmark with Vsync disabled""" |
69 tag = 'novsync' | 69 tag = 'novsync' |
70 | 70 |
71 @classmethod | 71 @classmethod |
72 def Name(cls): | 72 def Name(cls): |
73 return 'maps.novsync' | 73 return 'maps.novsync' |
74 | 74 |
75 def SetExtraBrowserOptions(self, options): | 75 def SetExtraBrowserOptions(self, options): |
76 options.AppendExtraBrowserArgs('--disable-gpu-vsync') | 76 options.AppendExtraBrowserArgs('--disable-gpu-vsync') |
OLD | NEW |