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

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

Issue 1217813005: [Telemetry] Modify CreatePageSet to CreateStorySet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Ethan's comments Created 5 years, 5 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
« no previous file with comments | « tools/perf/benchmarks/kraken.py ('k') | tools/perf/benchmarks/octane.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 os 8 import os
9 import re 9 import re
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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')
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/kraken.py ('k') | tools/perf/benchmarks/octane.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698