cut: code shrink
[busybox-git.git] / scripts / sample_pmap
blobe7fb4571dacc6fd1843ec481c1cd4ae64d56709f
1 #!/bin/sh
3 busybox=../busybox
5 $busybox sleep 10 &
6 pid=$!
7 sleep 1
9 echo "Memory map of '$busybox sleep 10':"
10 size $busybox
11 pmap $pid | env - grep "^[0-9a-f][0-9a-f]* " | sort -r -t " " -k2,999