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

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..ffe0eccf0836c7361b43a7609799fef16ad520df
--- /dev/null
+++ b/tools/perf/page_sets/system_health/blank_stories.py
@@ -0,0 +1,25 @@
+# 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 BlankAboutBlankStory(system_health_story.SystemHealthStory):
+ """Story that loads the about:blank page."""
+
+ NAME = 'blank:about:blank'
+ URL = 'about:blank'
+
+ def _DidLoadDocument(self, action_runner):
+ # Request a RAF and wait for it to be processed to ensure that the metric
+ # Startup.FirstWebContents.NonEmptyPaint2 is recorded.
+ action_runner.ExecuteJavaScript(
+ """
+ window.__hasRunRAF = false;
+ requestAnimationFrame(function() {
+ window.__hasRunRAF = true;
+ });
+ """
+ )
+ action_runner.WaitForJavaScriptCondition("window.__hasRunRAF")
« 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