source:
git/doc/memory_usage.sh@
b4cd1e7
Last change on this file since b4cd1e7 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.