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

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: Created 6 years, 2 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 | « no previous file | no next file » | 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..0aaba874e185eb11d10a2ed727cf3371702bb4da 100644
--- a/tools/perf/benchmarks/blink_perf.py
+++ b/tools/perf/benchmarks/blink_perf.py
@@ -97,6 +97,23 @@ class _BlinkPerfMeasurement(page_test.PageTest):
print log
+class _BlinkPerfFullLayoutMeasurement(_BlinkPerfMeasurement):
+ def __init__(self):
+ super(_BlinkPerfFullLayoutMeasurement, self).__init__()
+ self._blink_perf_js += '\nwindow.fullLayoutMeasurement = true;'
+
+ def CustomizeBrowserOptions(self, options):
+ super(_BlinkPerfFullLayoutMeasurement, self).CustomizeBrowserOptions(
+ options)
+
+ # Full layout measurement needs content_shell with internals testing API.
+ if options.browser_type == 'release':
+ options.browser_type = 'content-shell-release'
+ elif options.browser_type == 'debug':
+ options.browser_type = 'content-shell-debug'
Xianzhu 2014/10/29 16:54:58 Here browser_type is still forced, but it is for t
+ options.AppendExtraBrowserArgs(['--expose-internals-for-testing'])
+
+
class BlinkPerfAnimation(benchmark.Benchmark):
tag = 'animation'
test = _BlinkPerfMeasurement
@@ -169,6 +186,11 @@ class BlinkPerfLayout(benchmark.Benchmark):
return _CreatePageSetFromPath(path, SKIPPED_FILE)
+class BlinkPerfLayoutFullLayout(BlinkPerfLayout):
+ tag = 'layout_full_layout'
+ test = _BlinkPerfFullLayoutMeasurement
+
+
class BlinkPerfMutation(benchmark.Benchmark):
tag = 'mutation'
test = _BlinkPerfMeasurement
@@ -196,6 +218,11 @@ class BlinkPerfSVG(benchmark.Benchmark):
return _CreatePageSetFromPath(path, SKIPPED_FILE)
+class BlinkPerfSVGFullLayout(BlinkPerfSVG):
+ tag = 'svg_full_layout'
+ test = _BlinkPerfFullLayoutMeasurement
+
+
class BlinkPerfShadowDOM(benchmark.Benchmark):
tag = 'shadow_dom'
test = _BlinkPerfMeasurement
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698