Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Determining the Memory Usage of a Perl program from within Perl

by Gloom (Monk)
on Feb 15, 2001 at 16:31 UTC ( #58602=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    open( STAT , "</proc/$$/stat" )
        or die "Unable to open stat file";
    @stat = split /\s+/ , <STAT>;
    close( STAT );