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

Side by Side Diff: tools/perf/page_sets/pregenerated_large_profile_shared_state.py

Issue 1884493002: Move profile handling code to a child class of SharedPageState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: corrected names of variables Created 4 years, 8 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 | « no previous file | tools/perf/page_sets/pregenerated_profile_shared_state.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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 import os 4 import os
5 5
6 from telemetry.page import shared_page_state 6 from page_sets import pregenerated_profile_shared_state
7 7
8 8
9 class PregeneratedLargeProfileSharedState(shared_page_state.SharedPageState): 9 class PregeneratedLargeProfileSharedState(
10 pregenerated_profile_shared_state.PregeneratedProfileSharedState):
10 def __init__(self, test, finder_options, story_set): 11 def __init__(self, test, finder_options, story_set):
11 super(PregeneratedLargeProfileSharedState, self).__init__( 12 super(PregeneratedLargeProfileSharedState, self).__init__(
12 test, finder_options, story_set) 13 test, finder_options, story_set)
13 perf_dir = os.path.normpath( 14 perf_dir = os.path.normpath(
14 os.path.join(os.path.dirname(__file__), os.path.pardir)) 15 os.path.join(os.path.dirname(__file__), os.path.pardir))
15 profile_archive_dir = os.path.join( 16 self._pregenerated_profile_archive_dir = os.path.join(
16 perf_dir, 'generated_profiles', self._possible_browser.target_os, 17 perf_dir, 'generated_profiles', self._possible_browser.target_os,
17 'large_profile.zip') 18 'large_profile.zip')
18
19 self.SetPregeneratedProfileArchiveDir(profile_archive_dir)
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/pregenerated_profile_shared_state.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698