source:
git/doc/memory_usage.sh@
38b4e15
Last change on this file since 38b4e15 was eff28d6, checked in by , 11 years ago | |
---|---|
|
|
File size: 116 bytes |
Line | |
---|---|
1 | #! /bin/sh |
2 | |
3 | exec "$@" & |
4 | pid=$! |
5 | echo $pid |
6 | while true |
7 | do |
8 | ps -p $pid -o vsize= -o rss= >> $pid.txt |
9 | sleep 0.1 |
10 | done |
Note:
See TracBrowser
for help on using the repository browser.