update
Signed-off-by: Wenchao Hao <haowenchao22@gmail.com>
This commit is contained in:
parent
c7a76019a9
commit
2bf94d8a9a
19
applist
19
applist
|
|
@ -1,13 +1,10 @@
|
||||||
tv.danmaku.bili
|
com.UCMobile
|
||||||
com.xingin.xhs
|
|
||||||
com.taobao.taobao
|
com.taobao.taobao
|
||||||
com.ss.android.article.news
|
com.qiyi.video
|
||||||
com.sina.weibo
|
|
||||||
com.smile.gifmaker
|
|
||||||
air.tv.douyu.android
|
|
||||||
com.ss.android.ugc.aweme.lite
|
|
||||||
com.kuaishou.nebula
|
|
||||||
com.sup.android.superb
|
|
||||||
com.ss.android.ugc.aweme
|
com.ss.android.ugc.aweme
|
||||||
com.taobao.idlefish
|
com.smile.gifmaker
|
||||||
com.duowan.kiwi
|
com.kugou.android
|
||||||
|
com.xunmeng.pinduoduo
|
||||||
|
tv.danmaku.bili
|
||||||
|
com.tencent.qqlive
|
||||||
|
com.jingdong.app.mall
|
||||||
|
|
|
||||||
18
run.sh
18
run.sh
|
|
@ -1,11 +1,12 @@
|
||||||
#$dirput: round app start_time(ms) start_type rss(MB) pss(MB) ratio pagefault minorfaults majorfaults itlbmiss dtlbmiss cpustalled
|
#$dirput: round app start_time(ms) start_type rss(MB) pss(MB) ratio pagefault minorfaults majorfaults itlbmiss dtlbmiss cpustalled
|
||||||
|
|
||||||
cycle=3
|
cycle=3
|
||||||
wait=3
|
WAIT=3
|
||||||
clear_background=0
|
clear_background=0
|
||||||
mthp_stat=0
|
mthp_stat=0
|
||||||
|
cleancache=0
|
||||||
|
|
||||||
while getopts ":s:c:w:h:kT" opt
|
while getopts ":s:c:w:h:kTC" opt
|
||||||
do
|
do
|
||||||
case $opt in
|
case $opt in
|
||||||
s)
|
s)
|
||||||
|
|
@ -18,11 +19,14 @@ do
|
||||||
clear_background=1
|
clear_background=1
|
||||||
;;
|
;;
|
||||||
w)
|
w)
|
||||||
wait=$OPTARG
|
WAIT=$OPTARG
|
||||||
;;
|
;;
|
||||||
T)
|
T)
|
||||||
mthp_stat=1
|
mthp_stat=1
|
||||||
;;
|
;;
|
||||||
|
C)
|
||||||
|
cleancache=1
|
||||||
|
;;
|
||||||
h)
|
h)
|
||||||
echo "usage: run.sh -s sid -c cycle -w wait_seconds"
|
echo "usage: run.sh -s sid -c cycle -w wait_seconds"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
@ -68,7 +72,7 @@ mkdir $dir/meminfo
|
||||||
mkdir $dir/simpleperf
|
mkdir $dir/simpleperf
|
||||||
mkdir $dir/thpmaps
|
mkdir $dir/thpmaps
|
||||||
|
|
||||||
echo "round app start_type start_time rss pss pagefaults minorfaults majorfaults itlbmiss dtlbmiss cpustall inc_ratio order4_ratio order4_cont inc_total nr_direct_reclaim" > $dir/result
|
echo "round app start_type start_time rss pss pagefaults minorfaults majorfaults itlbmiss dtlbmiss cpustall inc_ratio inc_total order4_ratio order4_cont nr_inc_direct_reclaim" >> $dir/result
|
||||||
|
|
||||||
for round in $(seq 1 $cycle); do
|
for round in $(seq 1 $cycle); do
|
||||||
# 重启并等待重启完成
|
# 重启并等待重启完成
|
||||||
|
|
@ -172,7 +176,7 @@ for round in $(seq 1 $cycle); do
|
||||||
adb shell cat /proc/vmstat > $dir/system_mem/after_vmstat-$app-$round
|
adb shell cat /proc/vmstat > $dir/system_mem/after_vmstat-$app-$round
|
||||||
|
|
||||||
# 睡眠3s后拉simpleperf和perfetto数据
|
# 睡眠3s后拉simpleperf和perfetto数据
|
||||||
sleep $wait
|
sleep $WAIT
|
||||||
adb pull /data/misc/perfetto-traces/trace-"$app"-"$round".ptrace $dir/traces
|
adb pull /data/misc/perfetto-traces/trace-"$app"-"$round".ptrace $dir/traces
|
||||||
adb pull /data/local/tmp/simpleperf-"$app"-"$round".txt $dir/simpleperf/
|
adb pull /data/local/tmp/simpleperf-"$app"-"$round".txt $dir/simpleperf/
|
||||||
adb shell "rm /data/misc/perfetto-traces/trace-"$app"-"$round".ptrace"
|
adb shell "rm /data/misc/perfetto-traces/trace-"$app"-"$round".ptrace"
|
||||||
|
|
@ -247,6 +251,10 @@ for round in $(seq 1 $cycle); do
|
||||||
./clearapp.sh
|
./clearapp.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $cleancache -ne 0 ]; then
|
||||||
|
adb shell "echo 3 > /proc/sys/vm/drop_caches"
|
||||||
|
fi
|
||||||
|
|
||||||
rm tmp.txt
|
rm tmp.txt
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue