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

8
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,6 +80,7 @@ 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" echo "rebooting"
adb reboot adb reboot
@ -94,6 +99,7 @@ for round in $(seq 1 $cycle); do
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