repo.or.cz
/
busybox-git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
cut: code shrink
[busybox-git.git]
/
scripts
/
sample_pmap
blob
e7fb4571dacc6fd1843ec481c1cd4ae64d56709f
1
#!/bin/sh
2
3
busybox
=
..
/
busybox
4
5
$busybox
sleep
10
&
6
pid
=
$
!
7
sleep
1
8
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