On Sun, Feb 17, 2002 at 01:20:40PM +0200, Dan Kenigsberg wrote:
> Hi
> 
> I bet it is a stupid question with a simple answer, but I failed to find it, so:
> 
> Is there a utility to measure memory usage of a process, preferably proken into
> static/stack/heap? The man page of GNU `time' suggests that it should do the
> trick, but running
>       /usr/bin/time myprog
> always reports 0 memory usage.

Check out /proc/$PID/maps . The stack mapping is the last line, and 
its segment grows as the process uses more of it. 

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to