LINUX programming

Moderators: ITA
Number of threads: 1339
Number of posts: 2924

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
A program which tells you at the end the pick memory it allocated Posted by archwndas on 13 Aug 2008 at 6:10 AM
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?



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.