update
Signed-off-by: Wenchao Hao <haowenchao22@gmail.com>
This commit is contained in:
parent
bad8a7ca44
commit
206ea0ba68
15
run.sh
15
run.sh
|
|
@ -12,9 +12,10 @@ mkdir $dir
|
||||||
mkdir $dir/system_mem
|
mkdir $dir/system_mem
|
||||||
mkdir $dir/traces
|
mkdir $dir/traces
|
||||||
mkdir $dir/meminfo
|
mkdir $dir/meminfo
|
||||||
|
mkdir $dir/simpleperf
|
||||||
echo "round app start_type start_time inc_ratio inc_total rss pss pagefaults itlbmiss dtlbmiss cpustall" > $dir/result
|
echo "round app start_type start_time inc_ratio inc_total rss pss pagefaults itlbmiss dtlbmiss cpustall" > $dir/result
|
||||||
|
|
||||||
for round in $(seq 1 2); do
|
for round in $(seq 1 1); do
|
||||||
for app in `cat applist`; do
|
for app in `cat applist`; do
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
||||||
|
|
@ -75,9 +76,9 @@ for round in $(seq 1 2); 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 3
|
sleep 10
|
||||||
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/
|
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"
|
||||||
adb shell "rm /data/local/tmp/simpleperf-"$app"-"$round".txt"
|
adb shell "rm /data/local/tmp/simpleperf-"$app"-"$round".txt"
|
||||||
|
|
||||||
|
|
@ -118,10 +119,10 @@ for round in $(seq 1 2); do
|
||||||
inc_ratio=1
|
inc_ratio=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pagefaults=$(cat $dir/simpleperf-"$app"-"$round".txt | grep 'page-faults' | awk '{print $4}')
|
pagefaults=$(cat $dir/simpleperf/simpleperf-"$app"-"$round".txt | grep 'page-faults' | awk '{print $4}')
|
||||||
itlbmiss=$(cat $dir/simpleperf-"$app"-"$round".txt | grep 'iTLB-load-misses' | awk '{print $4}')
|
itlbmiss=$(cat $dir/simpleperf/simpleperf-"$app"-"$round".txt | grep 'iTLB-load-misses' | awk '{print $4}')
|
||||||
dtlbmiss=$(cat $dir/simpleperf-"$app"-"$round".txt | grep 'dTLB-load-misses' | awk '{print $4}')
|
dtlbmiss=$(cat $dir/simpleperf/simpleperf-"$app"-"$round".txt | grep 'dTLB-load-misses' | awk '{print $4}')
|
||||||
cpustall=$(cat $dir/simpleperf-"$app"-"$round".txt | grep 'raw-stall-backend-mem' | awk '{print $4}')
|
cpustall=$(cat $dir/simpleperf/simpleperf-"$app"-"$round".txt | grep 'raw-stall-backend-mem' | awk '{print $4}')
|
||||||
|
|
||||||
echo $round $app $start_type $start_time $inc_ratio $inc_total $rss $pss $pagefaults $itlbmiss $dtlbmiss $cpustall >> $dir/result
|
echo $round $app $start_type $start_time $inc_ratio $inc_total $rss $pss $pagefaults $itlbmiss $dtlbmiss $cpustall >> $dir/result
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue