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) |