From 78985b478ad70fad06136d7463afba1ccfdfead4 Mon Sep 17 00:00:00 2001 From: Wenchao Hao Date: Fri, 12 Sep 2025 21:46:40 +0800 Subject: [PATCH] update Signed-off-by: Wenchao Hao --- run.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/run.sh b/run.sh index 11d1dcb..52c23ba 100755 --- a/run.sh +++ b/run.sh @@ -112,6 +112,14 @@ for round in $(seq 1 $cycle); do for app in `cat applist`; do sleep 3 + if [ $clear_background -ne 0 ]; then + ./clearapp.sh + fi + + if [ $cleancache -ne 0 ]; then + adb shell "echo 3 > /proc/sys/vm/drop_caches" + fi + # 抓内存相关信息 adb shell free -h > $dir/system_mem/before_free-$app-$round adb shell cat /proc/meminfo > $dir/system_mem/before_meminfo-$app-$round @@ -247,14 +255,6 @@ for round in $(seq 1 $cycle); do 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 - if [ $clear_background -ne 0 ]; then - ./clearapp.sh - fi - - if [ $cleancache -ne 0 ]; then - adb shell "echo 3 > /proc/sys/vm/drop_caches" - fi - rm tmp.txt done done