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

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

Issue 24451002: [telemetry] Support absolute paths by changing file:/// to file://. More robust file path handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test on mac, apparently /tmp is a symlink to /private/tmp Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « tools/perf/benchmarks/dom_perf.py ('k') | tools/perf/benchmarks/spaceport.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 (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 import os 5 import os
6 6
7 from telemetry import test 7 from telemetry import test
8 from telemetry.core import util 8 from telemetry.core import util
9 from telemetry.page import page_measurement 9 from telemetry.page import page_measurement
10 from telemetry.page import page_set 10 from telemetry.page import page_set
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 class Octane(test.Test): 45 class Octane(test.Test):
46 """Google's Octane JavaScript benchmark.""" 46 """Google's Octane JavaScript benchmark."""
47 test = OctaneMeasurement 47 test = OctaneMeasurement
48 48
49 def CreatePageSet(self, options): 49 def CreatePageSet(self, options):
50 octane_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', 50 octane_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test',
51 'data', 'perf', 'third_party', 'octane') 51 'data', 'perf', 'third_party', 'octane')
52 return page_set.PageSet.FromDict({ 52 return page_set.PageSet.FromDict({
53 'pages': [ 53 'pages': [
54 { 'url': 'file:///index.html?auto=1' } 54 { 'url': 'file://index.html?auto=1' }
55 ] 55 ]
56 }, octane_dir) 56 }, octane_dir)
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/dom_perf.py ('k') | tools/perf/benchmarks/spaceport.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698