szabgab has asked for the wisdom of the Perl Monks concerning the following question:
Anyway I would like to write a test running the relevant function in a loop and checking the total memory use of my script before and after. I would like to do it in some platform independent way (at least among Unix/Linux and the like) and preferable to have it in a Perl module so I can just write a simple test.
Is there any module out there to report total memory usage of the current script? If not what tool is there to do it?
Update:
Thanks to McDarren I found Proc::ProcessTable that
solved the problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: total memory usage of process
by McDarren (Abbot) on Sep 05, 2006 at 13:01 UTC | |
by szabgab (Priest) on Sep 05, 2006 at 13:31 UTC | |
|
Re: total memory usage of process
by bangers (Pilgrim) on Sep 05, 2006 at 13:34 UTC | |
|
Re: total memory usage of process
by zentara (Cardinal) on Sep 05, 2006 at 14:25 UTC |