A program which tells you at the end the pick memory it allocated

I have a memory demanding application. It is possible to call some Linux system call or something so that the program can track down the memory consumption while it is running? At the end, I would like the program to tell me what was the pick memory it allocated.

Of course I can track all the memory allocations I do and program someway a memory pool e.t.c. This is too advanced for me to do at this moment. Maybe later this will be the way I will grand memory allocation to some class e.t.c. possibly by overloading the operators new and delete in C++. At the moment however I do not want to run top in order to track my application.

Any ideas?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories