On Fri 30 Aug 2002 10:15, Elizabeth Mattijsen <[EMAIL PROTECTED]> wrote: > At 08:56 AM 8/30/02 +0200, H.Merijn Brand wrote: > >Would it be a helpful indication to be able to have perl report the upper > >memmory bound on exit? Or better, the memory used: upper- minus lower bound > > Being able to do so at any point in Perl's execution would be great. Or is > there such a thing already and I just don't know about it (and I'm not > thinking about GTop)...
I was thinking about highjacking a standard function: read () read filehandle, $var, length [, offset] and use it like read [ \"PERL_status" ], $mem, "memory"; which is very illegal at the moment :) but probably easy to catch in the internals and than we've got a new gate to a welth of internal info :) -- H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/) using perl-5.6.1, 5.8.0 & 633 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3, WinNT 4, Win2K pro & WinCE 2.11. Smoking perl CORE: [EMAIL PROTECTED] http:[EMAIL PROTECTED]/ [EMAIL PROTECTED] send smoke reports to: [EMAIL PROTECTED], QA: http://qa.perl.org