Heapdmp
This function generates a dump file of memory usage, for debugging purposes.
The dump file is created in the TRA
subdirectory of the current folder. The function returns the path of the generated file.
This dump gives a detailed map of the instances allocated in each allocation group. It helps debug memory leaks.
PATH=heapDmp
In this example, an instance of C_ATABLE
(table description) was created in the [MYT]
allocation group and an AREAD
method was called on the key "ATABLE". The complete description of the table called ATABLE has been loaded and consists of the following:
C_ATABLE
using 3420 bytes (the header)C_ATABZON
using 37472 bytes (the description of the columns)C_ATABIND
using 1266 bytes (the description of the indexes)C_AMSKPAR
using 2464 bytes (the parameters associated with some data types)C_ATXTSUP
using 206770 bytes (the translatable texts)COMMON MAXMEM: 36700160 bytes, COMMON MEMORY USED : 3560945 bytes
Class @SUPERV.STC/C_ATTRIBUTE$adx: 17 instances, 10999 bytes
Class @SUPERV.STC/C_ACONTEXTACACHE$adx : 1 instances, 208 bytes
Class @SUPERV.STC/C_WMACONTEXTASUP$adx : 1 instances, 464 bytes
Class @SUPERV.STC/C_WMACONTEXTASOL$adx : 1 instances, 2366 bytes
Class @SUPERV.STC/C_WMACONTEXTAFOLD$adx: 1 instances, 434 bytes
Class @SUPERV.STC/C_AINFO$adx : 9 instances, 278082 bytes
Class @SUPERV.STC/C_WMACONTEXT$adx : 1 instances, 396 bytes
Class @SUPERV.STC/C_ATTRIBUTE$adx: 304 instances, 196688 bytes
Class @SUPERV.STC/C_ATABIND$adx : 2 instances, 1266 bytes
Class @SUPERV.STC/C_AMSKPAR$adx : 7 instances, 2464 bytes
Class @SUPERV.STC/C_ATABZON$adx : 35 instances, 37472 bytes
Class @SUPERV.STC/C_ATXTSUP$adx : 667 instances, 206770 bytes
Class @SUPERV.STC/C_ATABLE$adx: 1 instances, 3420 bytes
```