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

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

Issue 1914233003: [tools/perf] Delete unused variable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/service_worker.py ('k') | tools/perf/measurements/draw_properties.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 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 core import path_util 10 from core import path_util
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 class _SpaceportMeasurement(page_test.PageTest): 52 class _SpaceportMeasurement(page_test.PageTest):
53 53
54 def __init__(self): 54 def __init__(self):
55 super(_SpaceportMeasurement, self).__init__() 55 super(_SpaceportMeasurement, self).__init__()
56 56
57 def CustomizeBrowserOptions(self, options): 57 def CustomizeBrowserOptions(self, options):
58 options.AppendExtraBrowserArgs('--disable-gpu-vsync') 58 options.AppendExtraBrowserArgs('--disable-gpu-vsync')
59 59
60 def ValidateAndMeasurePage(self, page, tab, results): 60 def ValidateAndMeasurePage(self, page, tab, results):
61 del page # unused
61 tab.WaitForJavaScriptExpression( 62 tab.WaitForJavaScriptExpression(
62 '!document.getElementById("start-performance-tests").disabled', 60) 63 '!document.getElementById("start-performance-tests").disabled', 60)
63 64
64 tab.ExecuteJavaScript(""" 65 tab.ExecuteJavaScript("""
65 window.__results = {}; 66 window.__results = {};
66 window.console.log = function(str) { 67 window.console.log = function(str) {
67 if (!str) return; 68 if (!str) return;
68 var key_val = str.split(': '); 69 var key_val = str.split(': ');
69 if (!key_val.length == 2) return; 70 if (!key_val.length == 2) return;
70 __results[key_val[0]] = key_val[1]; 71 __results[key_val[0]] = key_val[1];
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 @classmethod 114 @classmethod
114 def Name(cls): 115 def Name(cls):
115 return 'spaceport' 116 return 'spaceport'
116 117
117 def CreateStorySet(self, options): 118 def CreateStorySet(self, options):
118 spaceport_dir = os.path.join(path_util.GetChromiumSrcDir(), 'chrome', 119 spaceport_dir = os.path.join(path_util.GetChromiumSrcDir(), 'chrome',
119 'test', 'data', 'third_party', 'spaceport') 120 'test', 'data', 'third_party', 'spaceport')
120 ps = story.StorySet(base_dir=spaceport_dir) 121 ps = story.StorySet(base_dir=spaceport_dir)
121 ps.AddStory(page_module.Page('file://index.html', ps, ps.base_dir)) 122 ps.AddStory(page_module.Page('file://index.html', ps, ps.base_dir))
122 return ps 123 return ps
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/service_worker.py ('k') | tools/perf/measurements/draw_properties.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698