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

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

Issue 1240703003: Extension profile generator + benchmark for startup with profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 from profile_creators import profile_generator
6 from profile_creators import extension_profile_extender
7 from telemetry.page import shared_page_state
8
9
10 class ExtensionProfileSharedState(shared_page_state.SharedPageState):
11 def __init__(self, test, finder_options, story_set):
12 super(ExtensionProfileSharedState, self).__init__(
13 test, finder_options, story_set)
14 generator = profile_generator.ProfileGenerator(
15 extension_profile_extender.ExtensionProfileExtender,
16 "extension_profile")
17 out_dir = generator.Run(finder_options)
erikchen 2015/07/14 23:36:14 Does this directory end up leaking? Does it magica
sydli 2015/07/15 22:56:23 Suppose it's "magically cached" since python's tem
18 print out_dir
erikchen 2015/07/14 23:36:14 Did you mean to use a log statement here?
sydli 2015/07/15 22:56:23 Yeah; although I realize it's redundant since gene
19 if out_dir:
20 finder_options.browser_options.profile_dir = out_dir
21 else:
22 finder_options.browser_options.dont_override_profile = True
23
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698