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

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

Issue 1185293006: Update android perf script (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 | « no previous file | 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
(...skipping 23 matching lines...) Expand all
34 TMP_APP_LOC=$PERF_TMP_DIR/data/local/tmp 34 TMP_APP_LOC=$PERF_TMP_DIR/data/local/tmp
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/libc++.so $TMP_SYS_LIB 44 adb_pull_if_needed /system/lib/libstdc++.so $TMP_SYS_LIB
45 adb_pull_if_needed /system/lib/libstlport.so $TMP_SYS_LIB 45 adb_pull_if_needed /system/lib/libstlport.so $TMP_SYS_LIB
46 adb_pull_if_needed /system/lib/libGLESv2.so $TMP_SYS_LIB 46 adb_pull_if_needed /system/lib/libGLESv2.so $TMP_SYS_LIB
47 adb_pull_if_needed /system/lib/libandroid.so $TMP_SYS_LIB 47 adb_pull_if_needed /system/lib/libandroid.so $TMP_SYS_LIB
48 adb_pull_if_needed /system/lib/libm.so $TMP_SYS_LIB 48 adb_pull_if_needed /system/lib/libm.so $TMP_SYS_LIB
49 adb_pull_if_needed /system/lib/libz.so $TMP_SYS_LIB 49 adb_pull_if_needed /system/lib/libz.so $TMP_SYS_LIB
50 50
51 # BUILDTYPE variable is set by android_setup.sh 51 # BUILDTYPE variable is set by android_setup.sh
52 BUILDDIR="${SKIA_OUT}/${BUILDTYPE}" 52 BUILDDIR="${SKIA_OUT}/${BUILDTYPE}"
53 if [ ! -f "${BUILDDIR}/lib/lib${runVars[0]}.so" ]; 53 if [ ! -f "${BUILDDIR}/lib/lib${runVars[0]}.so" ];
54 then 54 then
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 perf_clean 112 perf_clean
113 ;; 113 ;;
114 *) 114 *)
115 echo -n "ERROR: unknown perf command ($PERF_CMD), valid values: " 115 echo -n "ERROR: unknown perf command ($PERF_CMD), valid values: "
116 echo "setup, record, report, clean" 116 echo "setup, record, report, clean"
117 exit 1; 117 exit 1;
118 ;; 118 ;;
119 esac 119 esac
120 120
121 exit 0; 121 exit 0;
OLDNEW
« 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