Fork me on GitHub

source: git/doc/memory_usage.sh@ bdf9e2e

Last change on this file since bdf9e2e was eff28d6, checked in by pavel <pavel@…>, 11 years ago

add memory_usage.sh

  • Property mode set to 100755
File size: 116 bytes
Line 
1#! /bin/sh
2
3exec "$@" &
4pid=$!
5echo $pid
6while true
7do
8 ps -p $pid -o vsize= -o rss= >> $pid.txt
9 sleep 0.1
10done
Note: See TracBrowser for help on using the repository browser.