[Israel.pm] memory usage
Gaal Yahas
gaal at forum2.org
Tue Sep 5 10:34:17 PDT 2006
On Tue, Sep 05, 2006 at 08:01:11PM +0300, guy keren wrote:
> by the way, i usually run the memory-checking externally, in a seperate
> script that greps for something know to belong to the program i want to
> test. i always did this for C/C++ programs, so i had a unique name. with a
> perl script its a bit harder...
% perl -le '$0 = "[moose]"; sleep 60' & ps aux | grep moose
[1] 27264
roo 27264 0.0 0.4 4556 1280 pts/3 S 20:33 0:00 [moose]
roo 27266 0.0 0.2 3072 688 pts/3 S+ 20:33 0:00 grep moose
--
Gaal Yahas <gaal at forum2.org>
http://gaal.livejournal.com/
More information about the Perl
mailing list