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

Unified Diff: tools/android/customtabs_benchmark/scripts/launch.sh

Issue 2722733004: customtabs: Benchmark app for WebView / Custom Tabs comparisons. (Closed)
Patch Set: . Created 3 years, 9 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/scripts/customtabs_benchmark.py ('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/launch.sh
diff --git a/tools/android/customtabs_benchmark/scripts/launch.sh b/tools/android/customtabs_benchmark/scripts/launch.sh
new file mode 100755
index 0000000000000000000000000000000000000000..35d446043e777401af72c1cd0a709f582528f114
--- /dev/null
+++ b/tools/android/customtabs_benchmark/scripts/launch.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+set -x
+
+PACKAGE_NAME="org.chromium.customtabs.test"
+URL=$1
+USE_WEBVIEW=$2
+WARMUP=$3
+
+adb root
+
+adb shell am force-stop com.google.android.apps.chrome
+adb shell am force-stop $PACKAGE_NAME
+adb shell "echo 3 > /proc/sys/vm/drop_caches"
+
+sleep 3
+
+adb shell am start -n ${PACKAGE_NAME}/.MainActivity \
+ --es "url" "$URL" \
+ --ez "use_webview" "$USE_WEBVIEW" \
+ --ez "warmup" "$WARMUP"
« no previous file with comments | « tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698