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

Unified Diff: tools/perf/measurements/blink_style.py

Issue 1104043003: CL for perf tryjob on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/perf/benchmarks/blink_style.py ('k') | tools/perf/measurements/blink_style_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/measurements/blink_style.py
diff --git a/tools/perf/measurements/blink_style.py b/tools/perf/measurements/blink_style.py
index f89ab980085c4fc912debb5ce4d6af451428a12b..bbb4ca9c4edb6af48f0888a3b3b48984ade6068b 100644
--- a/tools/perf/measurements/blink_style.py
+++ b/tools/perf/measurements/blink_style.py
@@ -4,8 +4,8 @@
from itertools import starmap
from collections import defaultdict
-
from telemetry.core import util
+from telemetry.core import exceptions
from telemetry.page import page_test
from telemetry.value import scalar
@@ -19,7 +19,7 @@ class BlinkStyle(page_test.PageTest):
def WillNavigateToPage(self, page, tab):
self._controller = timeline_controller.TimelineController()
- self._controller.trace_categories = 'blink,benchmark,blink.console'
+ self._controller.trace_categories = 'blink_style,blink.console'
self._controller.SetUp(page, tab)
self._controller.Start(tab)
@@ -28,9 +28,12 @@ class BlinkStyle(page_test.PageTest):
self._controller.CleanUp(tab)
def ValidateAndMeasurePage(self, page, tab, results):
- tab.WaitForDocumentReadyStateToBeComplete()
- if not util.WaitFor(tab.HasReachedQuiescence, 30):
- raise page_test.MeasurementFailure('Failed to reach quiesence.')
+ tab.ExecuteJavaScript('console.time("wait-for-quiescence");')
+ try:
+ util.WaitFor(tab.HasReachedQuiescence, 15)
+ except exceptions.TimeoutException:
+ pass
+ tab.ExecuteJavaScript('console.timeEnd("wait-for-quiescence");')
tab.ExecuteJavaScript(
'console.time("style-update");'
« no previous file with comments | « tools/perf/benchmarks/blink_style.py ('k') | tools/perf/measurements/blink_style_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698