Fork me on GitHub

source: git/doc/memory_usage.sh@ b4786d3

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

add memory_usage.sh

  • Property mode set to 100755
File size: 116 bytes
RevLine 
[eff28d6]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.