Created
March 9, 2013 02:46
-
-
Save weidagang/5122257 to your computer and use it in GitHub Desktop.
Print process info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
PROCS=(zygote installd keystore mediaserver netd powerbtnd servicemanager ueventd vold) | |
OUT=/android/data/system/android_pmap.txt | |
rm -f $OUT | |
date >> $OUT | |
echo cat /sys/fs/cgroup/memory/android-start/memory.limit_in_bytes >> $OUT | |
cat /sys/fs/cgroup/memory/android-start/memory.limit_in_bytes >> $OUT | |
echo cat /proc/sys/vm/overcommit_memory >> $OUT | |
cat /proc/sys/vm/overcommit_memory >> $OUT | |
echo cat /proc/sys/vm/overcommit_ratio >>$OUT | |
cat /proc/sys/vm/overcommit_ratio >> $OUT 2>&1 | |
echo dmesg >> $OUT | |
dmesg >> $OUT | |
echo uname -a >> $OUT | |
uname -a >> $OUT | |
echo pstree -A >> $OUT | |
pstree -A >> $OUT | |
echo process info ... >> $OUT | |
for prc in ${PROCS[@]} | |
do | |
pmap -x `pidof $prc` >> $OUT | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment