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

Unified Diff: tools/perf/benchmarks/blink_perf.py

Issue 681493002: Add full frame measurement mode for some blink_perf tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Naming: 'full_layout' -> 'full_frame' Created 6 years, 1 month 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 | « no previous file | tools/telemetry/telemetry/decorators.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/blink_perf.py
diff --git a/tools/perf/benchmarks/blink_perf.py b/tools/perf/benchmarks/blink_perf.py
index 20d3a025ebceeb4bfbb020b69684339d4fe674d4..75ec1db12856fc00d1f97299b590d41f6ebcb465 100644
--- a/tools/perf/benchmarks/blink_perf.py
+++ b/tools/perf/benchmarks/blink_perf.py
@@ -97,6 +97,19 @@ class _BlinkPerfMeasurement(page_test.PageTest):
print log
+class _BlinkPerfFullFrameMeasurement(_BlinkPerfMeasurement):
+ def __init__(self):
+ super(_BlinkPerfFullFrameMeasurement, self).__init__()
+ self._blink_perf_js += '\nwindow.fullFrameMeasurement = true;'
+
+ def CustomizeBrowserOptions(self, options):
+ super(_BlinkPerfFullFrameMeasurement, self).CustomizeBrowserOptions(
+ options)
+ # Full layout measurement needs content_shell with internals testing API.
+ assert 'content-shell' in options.browser_type
+ options.AppendExtraBrowserArgs(['--expose-internals-for-testing'])
+
+
class BlinkPerfAnimation(benchmark.Benchmark):
tag = 'animation'
test = _BlinkPerfMeasurement
@@ -169,6 +182,12 @@ class BlinkPerfLayout(benchmark.Benchmark):
return _CreatePageSetFromPath(path, SKIPPED_FILE)
+@benchmark.Enabled('content-shell')
+class BlinkPerfLayoutFullLayout(BlinkPerfLayout):
+ tag = 'layout_full_frame'
+ test = _BlinkPerfFullFrameMeasurement
+
+
class BlinkPerfMutation(benchmark.Benchmark):
tag = 'mutation'
test = _BlinkPerfMeasurement
@@ -196,6 +215,12 @@ class BlinkPerfSVG(benchmark.Benchmark):
return _CreatePageSetFromPath(path, SKIPPED_FILE)
+@benchmark.Enabled('content-shell')
+class BlinkPerfSVGFullLayout(BlinkPerfSVG):
+ tag = 'svg_full_frame'
+ test = _BlinkPerfFullFrameMeasurement
+
+
class BlinkPerfShadowDOM(benchmark.Benchmark):
tag = 'shadow_dom'
test = _BlinkPerfMeasurement
« no previous file with comments | « no previous file | tools/telemetry/telemetry/decorators.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698