Fork me on GitHub

source: svn/trunk/doc/memory_usage.sh@ 1333

Last change on this file since 1333 was 1203, checked in by Pavel Demin, 11 years ago

add memory_usage.sh

  • Property svn:executable set to *
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.