|
|
|
For a quick check of your application do the
following:
- $export MALLOC_TRACE="trace.log" --
this is done at the shell prompt
- Insert the header #include
<mcheck.h>
- insert in your code mtrace(); --
there is an muntrace(); if you only want certain
sections.
- compile and run the program
- $mtrace trace.log -- this is done at
the shell prompt
|
|
|