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

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

Issue 2946913002: customtabs: Update the benchmark app for hidden tab benchmarking. (Closed)
Patch Set: Created 3 years, 6 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 3676ceebf7084bf50d55f969b82902e918805b70..93d7d0de4fa353e111d3494e79cd1366c5745cc0 100755
--- a/tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py
+++ b/tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py
@@ -198,7 +198,7 @@ def ProcessOutput(filename):
import numpy as np
data = np.genfromtxt(filename, delimiter=',', skip_header=1)
result = np.array(np.zeros(len(data)),
- dtype=[('warmup', bool), ('speculation_mode', np.int32),
+ dtype=[('warmup', bool), ('speculation_mode', str),
('delay_to_may_launch_url', np.int32),
('delay_to_launch_url', np.int32),
('commit', np.int32), ('plt', np.int32),
@@ -223,10 +223,9 @@ def _CreateOptionParser():
parser.add_option('--warmup', help='Call warmup.', default=False,
action='store_true')
parser.add_option('--speculation_mode', default='prerender',
- help='The speculation mode (prerender, disabled, '
+ help='The speculation mode (prerender, '
'speculative_prefetch or no_state_prefetch).',
- choices=['prerender', 'disabled', 'speculative_prefetch',
- 'no_state_prefetch'])
+ choices=['disabled', 'prerender', 'hidden_tab'])
parser.add_option('--delay_to_may_launch_url',
help='Delay before calling mayLaunchUrl() in ms.',
type='int', default=1000)
« 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