source:
git/doc/memory_usage.sh@
042c7b3
Last change on this file since 042c7b3 was eff28d6, checked in by , 11 years ago | |
---|---|
|
|
File size: 116 bytes |
Rev | Line | |
---|---|---|
[eff28d6] | 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.