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

Unified Diff: build/android/adb_profile_chrome

Issue 22806005: Add --continous parameter for adb_profile_chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/adb_profile_chrome
diff --git a/build/android/adb_profile_chrome b/build/android/adb_profile_chrome
index c4445d1772d7042b30ff7b1b0056290e8db3667f..79a3d5dc69daaec2f42121eea3a323eb7c0f2791 100755
--- a/build/android/adb_profile_chrome
+++ b/build/android/adb_profile_chrome
@@ -22,6 +22,8 @@ usage() {
echo " (Default is /sdcard/Download/chrome-profile-results-*)"
echo " --categories|-c C Select categories to trace with comma-delimited wildcards."
echo " e.g. '*', 'cat1*,-cat1a'. Default is '*'."
+ echo " --continuous Using the trace buffer as a ring buffer, continuously"
+ echo " profile until stopped."
echo " --stop Stop profiling."
echo " --download|-d Download latest trace."
echo " --time|-t N Profile for N seconds and download the resulting trace."
@@ -110,6 +112,7 @@ while test -n "$1"; do
CATEGORIES="-e categories '$2'"
shift
;;
+ --continuous) CONTINUOUS="-e continuous ." ;;
-t|--time)
shift
if [ -z "$1" ] ; then
@@ -131,9 +134,9 @@ if [ -z "${INTERVAL}" ] ; then
if [ -z "${FUNCTION}" ] ; then
usage
else
- send_intent ${PACKAGE} ${FUNCTION} ${OUTPUT} ${CATEGORIES}
+ send_intent ${PACKAGE} ${FUNCTION} ${OUTPUT} ${CATEGORIES} ${CONTINUOUS}
fi
else
- do_timed_capture ${PACKAGE} ${INTERVAL} ${CATEGORIES}
+ do_timed_capture ${PACKAGE} ${INTERVAL} ${CATEGORIES} ${CONTINUOUS}
fi
exit 0
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698