Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Memory Profiling

by redhotpenguin (Deacon)
on Jul 05, 2005 at 07:24 UTC ( #472371=note: print w/replies, xml ) Need Help??

in reply to Memory Profiling

Perl has Dan Sugalski's Devel::Size, which appears to do an excellent job of reporting memory usage of individual variables as well as more complex data structures. It's good for when one suspects a certain variable is getting a little too large, but does not provide a way to gain a snapshot into Perl's overall memory usage.

If you're looking to determine an aggregate size for your program perhaps taking a look at the guts of Apache::SizeLimit might yield some useful techniques.

perrin wrote that module IIRC, and it has some methods for returning process sizes on different platforms.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2022-09-26 18:03 GMT
Find Nodes?
    Voting Booth?
    I prefer my indexes to start at:

    Results (118 votes). Check out past polls.