|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: Determining memory usage of a process...by Zaxo (Archbishop) |
| on Sep 28, 2001 at 05:32 UTC ( [id://115324]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
On Linux (since h option differs from BSD), Other ps stats can be gotten similarly. It uses the rich ps system call for process stats, see 'man ps'. Perl's $$ variable is the current pid. Another approach is to root around in the "/proc/$$/" or '/proc/self/' directory.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||