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

Unified Diff: tools/perf/page_sets/system_health/blank_stories.py

Issue 2307873003: Add WebView Multiprocess startup benchmark. (Closed)
Patch Set: Add WebView Multiprocess startup benchmark. Created 4 years, 3 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
« no previous file with comments | « tools/perf/benchmarks/system_health.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/system_health/blank_stories.py
diff --git a/tools/perf/page_sets/system_health/blank_stories.py b/tools/perf/page_sets/system_health/blank_stories.py
new file mode 100644
index 0000000000000000000000000000000000000000..5213076084080164f22cd66a5b82ca2bc4d7d9ef
--- /dev/null
+++ b/tools/perf/page_sets/system_health/blank_stories.py
@@ -0,0 +1,27 @@
+# Copyright 2016 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.system_health import system_health_story
+
+
+class _BlankStory(system_health_story.SystemHealthStory):
+ """Abstract base class for blank page stories."""
+ ABSTRACT_STORY = True
+
+ def _DidLoadDocument(self, action_runner):
mikecase (-- gone --) 2016/09/07 20:40:40 Not 100% sure I need this? For context, this is r
+ # Request a RAF and wait for it to be processed to ensure that the metric
+ # Startup.FirstWebContents.NonEmptyPaint2 is recorded.
+ action_runner.ExecuteJavaScript(
+ """
+ this.hasRunRAF = 0;
+ requestAnimationFrame(function() {
+ this.hasRunRAF = 1;
+ });
+ """
+ )
+ action_runner.WaitForJavaScriptCondition("this.hasRunRAF == 1")
+
+class BlankStoryAboutBlank(_BlankStory):
+ NAME = 'blank:about:blank'
+ URL = 'about:blank'
« no previous file with comments | « tools/perf/benchmarks/system_health.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698