21.3 The gnatmem Tool
gnatmem utility monitors dynamic allocation and
deallocation activity in a program, and displays information about
incorrect deallocations and possible sources of memory leaks.
It is designed to work in association with a static runtime library
only and in this context provides three types of information:
- General information concerning memory management, such as the total
number of allocations and deallocations, the amount of allocated
memory and the high water mark, i.e. the largest amount of allocated
memory in the course of program execution.
- Backtraces for all incorrect deallocations, that is to say deallocations
which do not correspond to a valid allocation.
- Information on each allocation that is potentially the origin of a memory