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

Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.