mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-08 10:33:24 +09:00
11 lines
506 B
Bash
11 lines
506 B
Bash
# pbprobe.sh <tag> - every 15 s while the run lasts: two screenshots 1 s apart; logs size and whether they differ
|
|
D=/data/local/tmp/anl/pb; tag=$1; n=0
|
|
sleep 10
|
|
while [ ! -f $D/$tag.ended ]; do
|
|
screencap -p $D/pr-a.png; sleep 1; screencap -p $D/pr-b.png
|
|
a=$(md5sum $D/pr-a.png | cut -c1-8); b=$(md5sum $D/pr-b.png | cut -c1-8); s=$(stat -c %s $D/pr-a.png)
|
|
st=ok; [ "$a" = "$b" ] && st=STATIC; [ $s -lt 200000 ] && st=BLACK
|
|
echo "probe t=$n size=$s $st" >> $D/$tag.meta
|
|
n=$((n+15)); sleep 13
|
|
done
|