On Wed, Nov 11, 2009 at 10:47 AM, Suresh Kumar <[email protected]> wrote:
> I have developed the small application in linux. I would like to measure the
> CPU &memory usage of this application.
>
> tests:
> 1) CPU Usage of this application
> 2) Memory Usage of this application
Use the GNU Profiler "gprof" for accurate CPU usage reporting.
There's plenty of documentation online to help you get started.
> 3) Any memory leakage (measure the free memory before start the application,
> measure the free memory after the application ends - both values should be
> equal)
Memory leaks happen while your program is executing. Once it
exits, the OS will reclaim all memory back into the free pool.
To debug memory leaks in your app, try Valgrind or Electric Fence.
There are many other tools to choose from:
http://en.wikipedia.org/wiki/Memory_debugger
- Raja
_______________________________________________
To unsubscribe, email [email protected] with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc