| 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 re | 8 import re |
| 9 | 9 |
| 10 from core import path_util | 10 from core import path_util |
| (...skipping 27 matching lines...) Expand all Loading... |
| 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') |
| OLD | NEW |