Fork me on GitHub

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

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

add memory_usage.sh

  • Property svn:executable set to *
File size: 116 bytes
RevLine 
[1203]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.