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

Side by Side Diff: platform_tools/android/bin/android_perf

Issue 318493002: Android: remove -lcutils dependency (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 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 unified diff | Download patch
« no previous file with comments | « platform_tools/android/bin/android_gdbserver ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # 2 #
3 # android_perf: utility for running perf on an android device 3 # android_perf: utility for running perf on an android device
4 # 4 #
5 # The basic usage sequence is to run... 5 # The basic usage sequence is to run...
6 # 1) perf record [gm/tests/bench] # runs profiler on specified app 6 # 1) perf record [gm/tests/bench] # runs profiler on specified app
7 # 2) perf report # prints profiler results 7 # 2) perf report # prints profiler results
8 # 3) perf clean # cleans the temporary directory used to store results 8 # 3) perf clean # cleans the temporary directory used to store results
9 # 9 #
10 10
11 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 11 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
12 source $SCRIPT_DIR/android_setup.sh 12 source $SCRIPT_DIR/android_setup.sh
13 source $SCRIPT_DIR/utils/setup_adb.sh 13 source $SCRIPT_DIR/utils/setup_adb.sh
14 14
(...skipping 20 matching lines...) Expand all
35 35
36 perf_setup() { 36 perf_setup() {
37 37
38 mkdir -p $TMP_SYS_BIN 38 mkdir -p $TMP_SYS_BIN
39 mkdir -p $TMP_SYS_LIB 39 mkdir -p $TMP_SYS_LIB
40 mkdir -p $TMP_APP_LOC 40 mkdir -p $TMP_APP_LOC
41 41
42 echo "Copying symbol files" 42 echo "Copying symbol files"
43 adb_pull_if_needed /system/lib/libc.so $TMP_SYS_LIB 43 adb_pull_if_needed /system/lib/libc.so $TMP_SYS_LIB
44 adb_pull_if_needed /system/lib/libstlport.so $TMP_SYS_LIB 44 adb_pull_if_needed /system/lib/libstlport.so $TMP_SYS_LIB
45 adb_pull_if_needed /system/lib/libcutils.so $TMP_SYS_LIB
46 adb_pull_if_needed /system/lib/libGLESv2.so $TMP_SYS_LIB 45 adb_pull_if_needed /system/lib/libGLESv2.so $TMP_SYS_LIB
47 adb_pull_if_needed /system/lib/libandroid.so $TMP_SYS_LIB 46 adb_pull_if_needed /system/lib/libandroid.so $TMP_SYS_LIB
48 adb_pull_if_needed /system/lib/libm.so $TMP_SYS_LIB 47 adb_pull_if_needed /system/lib/libm.so $TMP_SYS_LIB
49 adb_pull_if_needed /system/lib/libz.so $TMP_SYS_LIB 48 adb_pull_if_needed /system/lib/libz.so $TMP_SYS_LIB
50 49
51 # BUILDTYPE variable is set by android_setup.sh 50 # BUILDTYPE variable is set by android_setup.sh
52 BUILDDIR="${SKIA_OUT}/${BUILDTYPE}" 51 BUILDDIR="${SKIA_OUT}/${BUILDTYPE}"
53 if [ ! -f "${BUILDDIR}/lib/lib${runVars[0]}.so" ]; 52 if [ ! -f "${BUILDDIR}/lib/lib${runVars[0]}.so" ];
54 then 53 then
55 echo "Unable to find the ${runVars[0]} library in ${BUILDDIR}/lib." 54 echo "Unable to find the ${runVars[0]} library in ${BUILDDIR}/lib."
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 perf_clean 111 perf_clean
113 ;; 112 ;;
114 *) 113 *)
115 echo -n "ERROR: unknown perf command ($PERF_CMD), valid values: " 114 echo -n "ERROR: unknown perf command ($PERF_CMD), valid values: "
116 echo "setup, record, report, clean" 115 echo "setup, record, report, clean"
117 exit 1; 116 exit 1;
118 ;; 117 ;;
119 esac 118 esac
120 119
121 exit 0; 120 exit 0;
OLDNEW
« no previous file with comments | « platform_tools/android/bin/android_gdbserver ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698