| View previous topic :: View next topic |
| Author |
Message |
Mr. JS
Joined: 02 Jul 2008 Posts: 3 Location: Kiel, Germany
|
Posted: Thu Jul 03, 2008 2:11 am Post subject: memory profiler / tracer? |
|
|
Hi!
Does anybody know how to find out how much memory a program uses during execution? Is there some kind of debugger/profiler which does this? Since I use dynamic memory allocation a lot, it would be interesting to know which arrays are allocated currently and their size.
Thanks for your help!
Jan |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 5001 Location: The Portland Group Inc.
|
Posted: Tue Jul 08, 2008 10:59 am Post subject: |
|
|
Hi Jan,
Most people simply use 'top' to determine how much total memory a program is using. For more advance memory profiling, you should take a look at Valgrind (www.valgrind.org), specifically the Massif heap profiler. I have not used Massif myself, and don't know if it will give you the details your looking for, but it is worth investigating.
- Mat |
|
| Back to top |
|
 |
|