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

Unified Diff: tools/perf/perf_tools/scrolling_benchmark.py

Issue 11187036: Android: start upstreaming some of our perf tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sami's comments Created 8 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
Index: tools/perf/perf_tools/scrolling_benchmark.py
diff --git a/tools/perf/perf_tools/scrolling_benchmark.py b/tools/perf/perf_tools/scrolling_benchmark.py
index 288efb129954ac50710b0f6515173b1a16cc37f9..07960e484987a1d878172497682b98e3d3a76c3c 100644
--- a/tools/perf/perf_tools/scrolling_benchmark.py
+++ b/tools/perf/perf_tools/scrolling_benchmark.py
@@ -41,6 +41,7 @@ class ScrollingBenchmark(multi_page_benchmark.MultiPageBenchmark):
scroll_js_path = os.path.join(os.path.dirname(__file__), 'scroll.js')
scroll_js = open(scroll_js_path, 'r').read()
+ tab.browser.platform.StartSurfaceCollector()
tonyg 2012/10/19 00:47:19 Move this below Execute(scroll_js) while keeping i
bulach 2012/10/22 15:57:14 Done.
# Run scroll test.
tab.runtime.Execute(scroll_js)
@@ -66,6 +67,8 @@ class ScrollingBenchmark(multi_page_benchmark.MultiPageBenchmark):
util.WaitFor(lambda: tab.runtime.Evaluate(
'window.__renderingStatsDeltas'), 60)
+ tab.browser.platform.StopSurfaceCollector()
+
rendering_stats_deltas = tab.runtime.Evaluate(
'window.__renderingStatsDeltas')

Powered by Google App Engine
This is Rietveld 408576698