Differences between revisions 2 and 3
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Editing include/base.h will enable #define's of ''malloc'' et. al., that will cause their calls to be expanded to calling ''malloc_here'' and similar functions that count the calls from each call site into a table. To see a summary of the various calls to malloc et. al., editing include/base.h and enable the #define's of ''malloc'' et. al., then rebuild. This will cause their calls to be expanded to calling ''malloc_here'' and similar functions that count the calls from each call site into a table. The table is then sorted and written during process exit.
Line 5: Line 5:
The table is then sorted and written during process exit. To do: integrate this table with the ROMP tree... To do: integrate this table with the ROMP tree...
Line 7: Line 7:
Editing utils/mgh_malloc.c can enable much more sophisticated malloc debugging. To enable much more sophisticated malloc debugging, edit utils/mgh_malloc.c

Parent: MorphoOptimizationProject

To see a summary of the various calls to malloc et. al., editing include/base.h and enable the #define's of malloc et. al., then rebuild. This will cause their calls to be expanded to calling malloc_here and similar functions that count the calls from each call site into a table. The table is then sorted and written during process exit.

To do: integrate this table with the ROMP tree...

To enable much more sophisticated malloc debugging, edit utils/mgh_malloc.c

MorphoOptimizationProject_malloc (last edited 2021-09-22 09:54:36 by DevaniCordero)