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.my $sz = `ps h -o sz $$`;
Another approach is to root around in the "/proc/$$/" or '/proc/self/' directory.
In reply to Re: Determining memory usage of a process...
by Zaxo
in thread Determining memory usage of a process...
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |