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

Unified Diff: tools/perf/page_sets/blank_page_with_extension_profile.py

Issue 1240703003: Extension profile generator + benchmark for startup with profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatting + fix to update_remote_extensions 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 side-by-side diff with in-line comments
Download patch
Index: tools/perf/page_sets/blank_page_with_extension_profile.py
diff --git a/tools/perf/page_sets/blank_page_with_extension_profile.py b/tools/perf/page_sets/blank_page_with_extension_profile.py
new file mode 100644
index 0000000000000000000000000000000000000000..8a3ff9a74f74a53a5e16dd9d7e57f8ff58fc6dfa
--- /dev/null
+++ b/tools/perf/page_sets/blank_page_with_extension_profile.py
@@ -0,0 +1,24 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from page_sets import extension_profile_shared_state
+from telemetry.page import page as page_module
+from telemetry import story
+
+
+class BlankPageWithExtensionProfile(page_module.Page):
robliao 2015/07/16 18:33:23 Add a docstring to this toplevel class.
sydli 2015/07/16 20:01:29 Done.
+ def __init__(self, url, page_set):
+ super(BlankPageWithExtensionProfile, self).__init__(
+ url=url, page_set=page_set,
+ shared_page_state_class=extension_profile_shared_state.
+ ExtensionProfileSharedState)
robliao 2015/07/16 18:33:23 This should line up with the extension_profile_sha
sydli 2015/07/16 20:01:29 Done.
+
+
+class BlankPageSetWithExtensionProfile(story.StorySet):
+ """A single blank page loaded with a profile with many extensions."""
+
+ def __init__(self):
+ super(BlankPageSetWithExtensionProfile, self).__init__()
+ self.AddStory(BlankPageWithExtensionProfile(
+ 'file://blank_page/blank_page.html', self))

Powered by Google App Engine
This is Rietveld 408576698