Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > get memory percent usage info

Reply
Thread Tools

get memory percent usage info

 
 
Ken
Guest
Posts: n/a
 
      08-31-2007
hi,

how to get a Perl program memory percent usage information within the
program itself, so that I can write that info to the stand out?

 
Reply With Quote
 
 
 
 
Spiros Denaxas
Guest
Posts: n/a
 
      09-01-2007
On Aug 31, 7:09 pm, Ken <KenP...@gmail.com> wrote:
> hi,
>
> how to get a Perl program memory percent usage information within the
> program itself, so that I can write that info to the stand out?


Hi,

If you are after the memory size of individual data structures, you
can use Devel::Size , found at http://search.cpan.org/~tels/Devel-S.../Devel/Size.pm
.. If however you are after the memory footprint of the entire Perl
script, you would probably want to use Proc:roccessTable, found at
http://search.cpan.org/~durist/Proc-...rocessTable.pm.
This effective will return you a UNIX process table with all the
relevant information. You could locate your script easily by searching
for the PID in the table ( $$ ).

Hope this helps,
Spiros

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
aspnet_wp.exe was recycled because memory consumption exceeded the 612 MB (60 percent of available RAM). SenthilVel ASP .Net 0 02-21-2007 12:43 PM
CPU Usage spikes to 76 percent and freezes computer for 3 seconds Mike Computer Support 0 12-30-2006 06:11 AM
100 percent usage of the COU EH Computer Support 13 07-13-2004 01:20 PM
Memory Control - Can you get the memory usage of the interpreter? Ian Python 3 07-10-2004 09:16 PM
Partially downloaded file will not delete and causes 100 percent CPU usage Michael Computer Support 1 05-31-2004 06:37 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57