more useful options | |
PerlMonks |
Re: Determining memory usage of a process...by rob_au (Abbot) |
on Sep 28, 2001 at 16:22 UTC ( [id://115380]=note: print w/replies, xml ) | Need Help?? |
The best method to do this would be to make use of the Proc::ProcessTable module which provides access to the Unix process table in a consistent fashion, hiding the vagarities of different /proc implementations.
The following documented code will return the total memory usage and the percentage memory utilisation of the current process by iteration through the process table:
Ooohhh, Rob no beer function well without!
In Section
Seekers of Perl Wisdom
|
|