Signed-off-by: Wenchao Hao <haowenchao22@gmail.com>
This commit is contained in:
Wenchao Hao 2025-09-15 22:01:47 +08:00
parent 4b34fd300d
commit 905977eb72
2 changed files with 34 additions and 17 deletions

11
applist
View File

@ -1,3 +1,14 @@
com.UCMobile
com.taobao.taobao
com.qiyi.video
com.ss.android.ugc.aweme
com.smile.gifmaker
com.kugou.android
com.xunmeng.pinduoduo
tv.danmaku.bili
com.tencent.qqlive
com.jingdong.app.mall
com.android.camera
com.tencent.tmgp.sgame com.tencent.tmgp.sgame
com.tencent.tmgp.pubgmhd com.tencent.tmgp.pubgmhd
com.tencent.jkchess com.tencent.jkchess

40
run.sh
View File

@ -5,8 +5,9 @@ WAIT=3
clear_background=0 clear_background=0
mthp_stat=0 mthp_stat=0
cleancache=0 cleancache=0
REBOOT=0
while getopts ":s:c:w:h:kTC" opt while getopts ":s:c:w:h:kTCR" opt
do do
case $opt in case $opt in
s) s)
@ -21,6 +22,9 @@ do
w) w)
WAIT=$OPTARG WAIT=$OPTARG
;; ;;
R)
REBOOT=1
;;
T) T)
mthp_stat=1 mthp_stat=1
;; ;;
@ -76,24 +80,26 @@ mkdir $dir/thpmaps
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 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
# 重启并等待重启完成 if [ $REBOOT -eq 1 ]; then
echo "rebooting" # 重启并等待重启完成
adb reboot echo "rebooting"
sleep 30 adb reboot
sleep 30
# 重启后等待adb # 重启后等待adb
# 如果10min还未成功则判断失败 # 如果10min还未成功则判断失败
for w in $(seq 1 600); do for w in $(seq 1 600); do
if [ $(adb devices | grep $ANDROID_SERIAL -c) -eq 0 ]; then if [ $(adb devices | grep $ANDROID_SERIAL -c) -eq 0 ]; then
echo waiting device $w echo waiting device $w
sleep 1 sleep 1
continue continue
fi fi
adb root adb root
break break
done done
sleep 10 sleep 10
fi
adb root adb root
adb shell cat /sys/kernel/mm/transparent_hugepage/hugepages-64kB/enabled > $dir/hugepages-64kB_enabled adb shell cat /sys/kernel/mm/transparent_hugepage/hugepages-64kB/enabled > $dir/hugepages-64kB_enabled