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

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

Issue 14359012: Telemetry: Add option to create a dirty profile as part of a test run (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Whitespace fixes Created 7 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
OLDNEW
(Empty)
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
nduca 2013/04/26 20:09:36 why is this one here and not with the dirty one?
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import os
6
7 from telemetry.page import page_set
8
9 # Runs a browser through a series of operations to fill in a small test profile.
10 class SmallProfile(object):
11 def __init__(self, browser):
12 super(SmallProfile, self).__init__()
13 self._browser = browser
14
15 def CreateProfile(self):
16 top_25 = os.path.join(os.path.dirname(__file__),
17 '..', 'page_sets', 'top_25.json')
18 pages_to_load = page_set.PageSet.FromFile(top_25)
19 tab = self._browser.tabs[0]
20 for page in pages_to_load:
21 tab.Navigate(page.url)
22 tab.WaitForDocumentReadyStateToBeComplete()
23 tab.Disconnect()
OLDNEW
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/browser.py » ('j') | tools/telemetry/telemetry/core/browser.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698