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

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

Issue 816353008: [Telemetry] Explicitly define Name() method for all perf benchmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
1 # Copyright 2012 The Chromium Authors. All rights reserved. 1 # Copyright 2012 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 spaceport.io's PerfMarks benchmark.""" 5 """Runs spaceport.io's PerfMarks benchmark."""
6 6
7 import logging 7 import logging
8 import os 8 import os
9 9
10 from telemetry import benchmark 10 from telemetry import benchmark
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 """spaceport.io's PerfMarks benchmark. 100 """spaceport.io's PerfMarks benchmark.
101 101
102 http://spaceport.io/community/perfmarks 102 http://spaceport.io/community/perfmarks
103 103
104 This test performs 3 animations (rotate, translate, scale) using a variety of 104 This test performs 3 animations (rotate, translate, scale) using a variety of
105 methods (css, webgl, canvas, etc) and reports the number of objects that can 105 methods (css, webgl, canvas, etc) and reports the number of objects that can
106 be simultaneously animated while still achieving 30FPS. 106 be simultaneously animated while still achieving 30FPS.
107 """ 107 """
108 test = _SpaceportMeasurement 108 test = _SpaceportMeasurement
109 109
110 @classmethod
111 def Name(cls):
112 return 'spaceport'
113
110 def CreatePageSet(self, options): 114 def CreatePageSet(self, options):
111 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', 115 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test',
112 'data', 'third_party', 'spaceport') 116 'data', 'third_party', 'spaceport')
113 ps = page_set.PageSet(file_path=spaceport_dir) 117 ps = page_set.PageSet(file_path=spaceport_dir)
114 ps.AddUserStory(page_module.Page('file://index.html', ps, ps.base_dir)) 118 ps.AddUserStory(page_module.Page('file://index.html', ps, ps.base_dir))
115 return ps 119 return ps
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698