Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Is there a way(maybe tool?) to know the amount of memory an array takes?

by zentara (Archbishop)
on Oct 21, 2011 at 12:57 UTC ( #932884=note: print w/ replies, xml ) Need Help??


in reply to Is there a way(maybe tool?) to know the amount of memory an array takes?

If you just want a general guideline as to how much memory your script is using, in realtime, with a simple little Tk display, see linux memory leak monitor. It won't be as accurate as Devel::Size, but its alot easier, all you do is put "use MeM;" at the top of your script, and a little window will open in the lower right corner, showing the second by second memory usage of your script.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh


Comment on Re: Is there a way(maybe tool?) to know the amount of memory an array takes?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932884]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2014-09-16 11:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (12 votes), past polls