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

Side by Side Diff: tools/perf/benchmarks/dom_perf.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/blink_perf.py ('k') | tools/perf/benchmarks/dromaeo.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 import json 5 import json
6 import math 6 import math
7 import os 7 import os
8 8
9 from core import perf_benchmark 9 from core import perf_benchmark
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 ] 101 ]
102 102
103 @classmethod 103 @classmethod
104 def Name(cls): 104 def Name(cls):
105 return 'dom_perf' 105 return 'dom_perf'
106 106
107 def CreatePageTest(self, options): 107 def CreatePageTest(self, options):
108 del options 108 del options
109 return _DomPerfMeasurement(len(self.RUN_PARAMS)) 109 return _DomPerfMeasurement(len(self.RUN_PARAMS))
110 110
111 def CreatePageSet(self, options): 111 def CreateStorySet(self, options):
112 dom_perf_dir = os.path.join(util.GetChromiumSrcDir(), 'data', 'dom_perf') 112 dom_perf_dir = os.path.join(util.GetChromiumSrcDir(), 'data', 'dom_perf')
113 ps = page_set.PageSet(base_dir=dom_perf_dir) 113 ps = page_set.PageSet(base_dir=dom_perf_dir)
114 for param in self.RUN_PARAMS: 114 for param in self.RUN_PARAMS:
115 ps.AddUserStory(page_module.Page( 115 ps.AddUserStory(page_module.Page(
116 'file://run.html?reportInJS=1&run=%s' % param, ps, ps.base_dir)) 116 'file://run.html?reportInJS=1&run=%s' % param, ps, ps.base_dir))
117 return ps 117 return ps
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/blink_perf.py ('k') | tools/perf/benchmarks/dromaeo.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698