Memory Usage
Moderator: Board moderators
Memory Usage
How to find out how much memory a program has used, in linux.
-
- New poster
- Posts: 44
- Joined: Fri Feb 20, 2004 5:52 pm
Re: Memory Usage
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.shamim wrote:How to find out how much memory a program has used, in linux.

-
- New poster
- Posts: 44
- Joined: Fri Feb 20, 2004 5:52 pm
Take a look at this topic too: https://spoj.sphere.pl/forum/viewtopic.php?t=3032