update
Signed-off-by: Wenchao Hao <haowenchao22@gmail.com>
This commit is contained in:
parent
7da80ec9de
commit
f9d461142a
|
|
@ -17,9 +17,8 @@ echo perfetto_pid is $perfetto_pid
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
if [ "$app" == "com.qiyi.video" ]; then
|
if [ "$app" == "com.qiyi.video" ]; then
|
||||||
|
activity="com.qiyi.video/com.qiyi.video.WelcomeActivity"
|
||||||
elif [ "$app" == "com.netease.cloudmusic" ]; then
|
elif [ "$app" == "com.netease.cloudmusic" ]; then
|
||||||
activity="com.qiyi.video/.WelcomeActivityBirthday"
|
|
||||||
else
|
|
||||||
activity="com.netease.cloudmusic/com.netease.cloudmusic.activity.IconChangeDefaultAlias"
|
activity="com.netease.cloudmusic/com.netease.cloudmusic.activity.IconChangeDefaultAlias"
|
||||||
else
|
else
|
||||||
activity=$(adb shell dumpsys package $app | grep -A 1 -w "android.intent.action.MAIN:" | head -n 2 | tail -n 1 | awk '{print $2}')
|
activity=$(adb shell dumpsys package $app | grep -A 1 -w "android.intent.action.MAIN:" | head -n 2 | tail -n 1 | awk '{print $2}')
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
buffers: {
|
buffers: {
|
||||||
size_kb: 63488
|
size_kb: 634880
|
||||||
fill_policy: DISCARD
|
fill_policy: DISCARD
|
||||||
}
|
}
|
||||||
buffers: {
|
buffers: {
|
||||||
|
|
|
||||||
13
run.sh
13
run.sh
|
|
@ -1,7 +1,12 @@
|
||||||
#$dirput: round app start_time start_type rss pss ratio pagefault itlbmiss dtlbmiss cpustalled
|
#$dirput: round app start_time start_type rss pss ratio pagefault itlbmiss dtlbmiss cpustalled
|
||||||
|
|
||||||
|
adb root
|
||||||
adb push perfconf.txt /data/misc/perfetto-configs
|
adb push perfconf.txt /data/misc/perfetto-configs
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
dir=$(/usr/bin/date +%Y-%m%d-%H%M)
|
dir=$(/usr/bin/date +%Y-%m%d-%H%M)
|
||||||
mkdir $dir
|
mkdir $dir
|
||||||
mkdir $dir/mminfo
|
mkdir $dir/mminfo
|
||||||
|
|
@ -9,13 +14,7 @@ echo "round app start_type start_time inc_ratio inc_total rss pss pagefaults itl
|
||||||
|
|
||||||
for round in $(seq 1 2); do
|
for round in $(seq 1 2); do
|
||||||
for app in `cat applist`; do
|
for app in `cat applist`; do
|
||||||
sleep 10
|
sleep 3
|
||||||
echo "开始测试应用 $app"
|
|
||||||
# read -p "输入q退出, 输入其他任意内容继续" cmd
|
|
||||||
|
|
||||||
#if [ "$cmd" == "q" ]; then
|
|
||||||
# exit
|
|
||||||
#fi
|
|
||||||
|
|
||||||
# 抓内存相关信息
|
# 抓内存相关信息
|
||||||
adb shell free -h > $dir/mminfo/before_free-$app-$round
|
adb shell free -h > $dir/mminfo/before_free-$app-$round
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue