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

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

Issue 100653004: [Telemetry] Disable spaceport and tough_canvas_cases on mac. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years 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/smoothness.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 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 import sys
9 10
10 from telemetry import test 11 from telemetry import test
11 from telemetry.core import util 12 from telemetry.core import util
12 from telemetry.page import page_measurement 13 from telemetry.page import page_measurement
13 from telemetry.page import page_set 14 from telemetry.page import page_set
14 15
15 16
16 class _SpaceportMeasurement(page_measurement.PageMeasurement): 17 class _SpaceportMeasurement(page_measurement.PageMeasurement):
17 def CustomizeBrowserOptions(self, options): 18 def CustomizeBrowserOptions(self, options):
18 options.AppendExtraBrowserArgs('--disable-gpu-vsync') 19 options.AppendExtraBrowserArgs('--disable-gpu-vsync')
(...skipping 30 matching lines...) Expand all
49 results.Add(trace, 'objects (bigger is better)', float(result_dict[key]), 50 results.Add(trace, 'objects (bigger is better)', float(result_dict[key]),
50 chart_name=chart, data_type='unimportant') 51 chart_name=chart, data_type='unimportant')
51 results.Add('Score', 'objects (bigger is better)', 52 results.Add('Score', 'objects (bigger is better)',
52 [float(x) for x in result_dict.values()]) 53 [float(x) for x in result_dict.values()])
53 54
54 55
55 class Spaceport(test.Test): 56 class Spaceport(test.Test):
56 """spaceport.io's PerfMarks benchmark.""" 57 """spaceport.io's PerfMarks benchmark."""
57 test = _SpaceportMeasurement 58 test = _SpaceportMeasurement
58 59
60 enabled = sys.platform != 'darwin'
61
59 def CreatePageSet(self, options): 62 def CreatePageSet(self, options):
60 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', 63 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test',
61 'data', 'third_party', 'spaceport') 64 'data', 'third_party', 'spaceport')
62 return page_set.PageSet.FromDict( 65 return page_set.PageSet.FromDict(
63 {'pages': [{'url': 'file://index.html'}]}, 66 {'pages': [{'url': 'file://index.html'}]},
64 spaceport_dir) 67 spaceport_dir)
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/smoothness.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698