blob: 6e141281a07ca56ba38843b48e43769c9e0d36da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#!bin/sh
function logcmd()
{
echo -e "\n"
echo -n "$@"
echo -n " on "
date '+%m-%d %T'
}
function exe_cmd()
{
logcmd "$@";
eval $@;
echo -n "run finished on "
date '+%m-%d %T'
}
count=0
while true;do
sysinfo_date=$(date '+%m-%d %T')
echo "sysinfo_"$count" on "$sysinfo_date
count=$(($count+1))
exe_cmd "cat /proc/meminfo"
exe_cmd "free"
exe_cmd "vmstat"
exe_cmd "df"
exe_cmd "storaged -u"
exe_cmd "cat /proc/uid_io/debug"
exe_cmd "cat /proc/buddyinfo"
exe_cmd "cat /proc/slabinfo"
exe_cmd "cat /proc/zoneinfo"
exe_cmd "cat /proc/vmstat"
exe_cmd "cat /proc/vmallocinfo"
exe_cmd "cat /proc/pagetypeinfo"
exe_cmd "cat /d/wakeup_sources"
exe_cmd "cat /dev/binderfs/binder_logs/failed_transaction_log"
exe_cmd "cat /dev/binderfs/binder_logs/transaction_log"
exe_cmd "cat /dev/binderfs/binder_logs/transactions"
exe_cmd "cat /dev/binderfs/binder_logs/stats"
exe_cmd "cat /dev/binderfs/binder_logs/state"
exe_cmd "cat /proc/interrupts"
echo "sysinfo end\n\n\n"
if [[ $1 == 1 ]]; then
break
fi
#print sysinfo log every 2m
sleep 120s
done
|