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

Unified Diff: tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py

Issue 2375113002: tools: Log time to first contentful paint in customtabs_benchmark. (Closed)
Patch Set: 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/android/customtabs_benchmark/java/src/org/chromium/customtabs/test/MainActivity.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py
diff --git a/tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py b/tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py
index e8974eafcb98ecda2a4d1018be0dbd2f38ad44a8..08e0f0976424810f85be08efb706542a5c004a59 100755
--- a/tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py
+++ b/tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py
@@ -78,7 +78,8 @@ def RunOnce(device, url, warmup, prerender_mode, delay_to_may_launch_url,
Returns:
The output line (str), like this (one line only):
<warmup>,<prerender_mode>,<delay_to_may_launch_url>,<delay_to_launch>,
- <intent_sent_ms>,<page_load_started_ms>,<page_load_finished_ms>
+ <intent_sent_ms>,<page_load_started_ms>,<page_load_finished_ms>,
+ <first_contentful_paint>
or None on error.
"""
launch_intent = intent.Intent(
@@ -154,13 +155,15 @@ def ProcessOutput(filename):
dtype=[('warmup', bool), ('prerender_mode', np.int32),
('delay_to_may_launch_url', np.int32),
('delay_to_launch_url', np.int32),
- ('commit', np.int32), ('plt', np.int32)])
+ ('commit', np.int32), ('plt', np.int32),
+ ('first_contentful_paint', np.int32)])
result['warmup'] = data[:, 0]
result['prerender_mode'] = data[:, 1]
result['delay_to_may_launch_url'] = data[:, 2]
result['delay_to_launch_url'] = data[:, 3]
result['commit'] = data[:, 5] - data[:, 4]
result['plt'] = data[:, 6] - data[:, 4]
+ result['first_contentful_paint'] = data[7]
return result
« no previous file with comments | « tools/android/customtabs_benchmark/java/src/org/chromium/customtabs/test/MainActivity.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698