Basically I'm doing some competitive programming stuf, and I want to check (locally) how much memory is used by my program during runtime. I would like to measure this using another program. Is there a way to do that? If so, can I have the code? Quite confused here.
Would be better if there's a platform-independent way.