-->
options Causes DRA to intercept the following C-functions:
malloc
allocate virtual storage
calloc
allocate and initialize virtual storage
realloc
reallocate virtual storage
free
free virtual storage
This option monitors the activity of Virtual Storage allocations and deallocations. It enables the developer of the application program to
check for excessive memory allocations leading to performance degradation
detect memory leaks by ensuring that all allocated storage is properly freed.
The only valid specification is EDC(1)
or EDC(2)
if EDC(1) is specified then the information is shown in verbose form. This form is more readable to the human eye. See example 1 below.
if EDC(2) is specified then the information is shown in a form that is more suitable for post-processing by another program. See example 2 below. The information is presented as positional parameters separated by commas. The parameters are in the order new-address, old-address, size of storage, name of caller. This format is intended for further processing by a separate program.
When the application program calls function malloc
then DRA traces
the name of the calling program that wants to allocate the virtual storage
the address and size of the allocated storage.
When the application program calls function calloc
then DRA traces
the name of the calling program that wants to allocate the elements of virtual storage.
the address, number of elements and element size of the allocated storage
When the application program calls function realloc
then DRA traces
the name of the calling program that wants to reallocate the virtual storage.
the old address of the currently allocated storage.
the new address and new size of the reallocated storage.
When the application program calls function free
then DRA traces
the name of the calling program that wants to free the virtual storage.
the address of the freed storage.
Example EDC(1): verbose form
malloc called by main
malloc ADDRESS=09733028 SIZE=100000
realloc called by main
realloc OLD_ADDRESS=09733028 NEW_ADDRESS=0974C028 SIZE=200000
free called by main
free ADDRESS=0974C028
calloc called by main
calloc ADDRESS=0974C028 ELEMENTS=11 SIZE=200
free called by main
free ADDRESS=0974C028
Example EDC(2): new-address, old-address, size of storage, name of caller
malloc 09733028,,100000,main
realloc 0974C028,09733028,200000,main
free ,0974C028,,main
calloc 0974C028,,2200,main
free ,0974C028,,main