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

Side by Side Diff: tools/perf/perf_tools/startup_tests.py

Issue 12770005: Port PerfWarm startup test to Telemetry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix review comments Created 7 years, 9 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/page_sets/blank_page.json ('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
(Empty)
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from telemetry.page import page_benchmark
6
7 # TODO(jeremy): Discard results from first iteration of warm tests.
8
9 # Test how long Chrome takes to load when warm.
10 class PerfWarm(page_benchmark.PageBenchmark):
11 def __init__(self):
12 super(PerfWarm, self).__init__(needs_browser_restart_after_each_run=True)
13
14 def CustomizeBrowserOptions(self, options):
15 options.AppendExtraBrowserArg('--dom-automation')
16 options.AppendExtraBrowserArg('--reduce-security-for-dom-automation-tests')
17
18 def MeasurePage(self, page, tab, results):
19 result = tab.EvaluateJavaScript(
nduca 2013/03/13 16:57:29 multiline quote would help here maybe
jeremy 2013/03/19 14:38:06 Done.
20 'domAutomationController.getBrowserHistogram('
nduca 2013/03/13 16:57:29 i think it'd be good to add the appropriate method
jeremy 2013/03/19 14:38:06 Not sure what you mean by a passthrough method. D
21 '"Startup.BrowserMessageLoopStartTimeFromMainEntry")')
22 results.Add('startup_time', 'ms', result)
OLDNEW
« no previous file with comments | « tools/perf/page_sets/blank_page.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698