Memory Usage

Post about everything you want - even if it is not related to programming or this site.

Moderator: Board moderators

Post Reply
shamim
A great helper
Posts: 498
Joined: Mon Dec 30, 2002 10:10 am
Location: Bozeman, Montana, USA

Memory Usage

Post by shamim »

How to find out how much memory a program has used, in linux.
Tomislav Novak
New poster
Posts: 44
Joined: Fri Feb 20, 2004 5:52 pm

Re: Memory Usage

Post by Tomislav Novak »

shamim wrote:How to find out how much memory a program has used, in linux.
You could read /proc/<pid>/status just before your program terminates (using atexit for example). If anyone knows a better way (the one that judge uses), I would also like to know. :-)
Tomislav Novak
New poster
Posts: 44
Joined: Fri Feb 20, 2004 5:52 pm

Post by Tomislav Novak »

Post Reply

Return to “Off topic (General chit-chat)”